-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug 📝
I have created a Grid like in the example (https://thatopen.github.io/engine_ui-components/examples/Grid/) where there are 2 layouts.
One with two row, the other with three.
Switching from a three-row to a two-row layout takes place without any problems.
But when switching from two-row to three-row , the bottom row is not displayed.
Since the original example works, I understood why - because there is a phase with an undefined layout.
Based on this I found a workaround:
if(layout === "three-row"){
this._grid.layout = undefined;
setTimeout(() => {
this._grid.layout = layout;
}, 100);
} else {
this._grid.layout = layout;
}
But it has side effects and needs to have a real fix.
Reproduction ▶️
No response
Steps to reproduce 🔢
- Create Grid
- Add layout with 2-row template
- Add layout with 3-row template
- Set 2-row as initial
- Add button to change layout to 3-row
- Run app
- Click layout switch button
- See on screen - 3-rd row does not apear
System Info 💻
System:
OS: Windows 11 10.0.22631
CPU: (20) x64 12th Gen Intel(R) Core(TM) i7-12700K
Memory: 18.51 GB / 31.79 GB
Binaries:
Node: 20.10.0 - C:\Program Files\nodejs\node.EXE
npm: 10.2.5 - C:\Program Files\nodejs\npm.CMD
pnpm: 8.5.1 - ~\AppData\Roaming\npm\pnpm.CMD
Browsers:
Edge: Chromium (126.0.2592.81)
Internet Explorer: 11.0.22621.3527
Used Package Manager 📦
npm
Error Trace/Logs 📃
No response
Validations ✅
- Read the docs.Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.Make sure this is a repository issue and not a framework-specific issue. For example, if it's a THREE.js related bug, it should likely be reported to mrdoob/threejs instead.Check that this is a concrete bug. For Q&A join our Community.The provided reproduction is a minimal reproducible example of the bug.To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
HoyosJuan commentedon Jul 1, 2024
Hey @K1vs!
May you please tell me the layout templates used? So I can test with your same example.
HoyosJuan commentedon Jul 16, 2024
Hey @K1vs! Any updates on this?