View Issue Details

IDProjectCategoryView StatusLast Update
0002997NoesisGUIStudiopublic2024-02-16 18:37
Reporterfllorens Assigned Todfranjic  
PrioritynormalSeverityminor 
Status resolvedResolutionfixed 
Target VersionStudio_Alpha 
Summary0002997: Weird margins when grouping a grid inside a viewbox
Description

As seen here: https://youtu.be/_BVXMra08jo?feature=shared&t=1284 when grouping a grid that is child of a viewbox, inside another grid, weird margins are applied
Also shown here: https://youtu.be/6iouSTq37aM?feature=shared&t=1036
Also seen here: https://youtu.be/jTX2Izz7zj8?feature=shared&t=719

Steps To Reproduce
  1. Add a grid to the scene
  2. group the grid inside a viewbox
  3. group the original grid inside another grid
  4. Take a look at he margins
PlatformAny

Relationships

related to 0002902 resolveddfranjic Ungrouping canvas crashes the application 
related to 0002836 resolveddfranjic Crash when grouping a template's grid 

Activities

sfernandez

sfernandez

2024-01-08 19:31

manager   ~0009061

The problem of this and related tickets is from how elements are grouped/ungrouped inside single child containers.

Right now we are creating the new parent, adding it to the single child container, and then moving the other elements inside the new parent. But the first operation is not possible because the container can only have 1 child at the same time. We need to find another way to implement this kind of operations.

dfranjic

dfranjic

2024-01-09 16:53

developer   ~0009069

Just noting that this issue might also be related to 0002836 (unsure though, because templates are weird sometimes).

The possible solution could be to create a group element in-memory, store the original content of a single child container into a smart Ptr<>, remove the single child container content, add the original content to the group element, set the group element as the content of the single child container.

Unsure though as maybe detaching from visual tree and reattaching it is going to cause some assert/crash to happen. Maybe the solution would then be to Helper::Clone() the original content and add it to the group element and then just replace the content of a single child container.

Issue History

Date Modified Username Field Change
2024-01-08 18:36 fllorens New Issue
2024-01-08 18:56 jsantos Target Version => Studio_Alpha
2024-01-08 18:56 jsantos Assigned To => sfernandez
2024-01-08 18:56 jsantos Status new => assigned
2024-01-08 19:28 sfernandez Relationship added related to 0002902
2024-01-08 19:29 sfernandez Relationship added related to 0002836
2024-01-08 19:31 sfernandez Note Added: 0009061
2024-01-08 19:31 sfernandez Assigned To sfernandez => dfranjic
2024-01-09 16:53 dfranjic Note Added: 0009069
2024-01-19 16:12 fllorens Description Updated
2024-01-22 11:16 fllorens Description Updated
2024-02-16 18:37 dfranjic Status assigned => resolved
2024-02-16 18:37 dfranjic Resolution open => fixed