Currently, the Stack (column/row) calculates it's z-index based on children's z-index. Stack will have z-index = child_with_biggest_z_index - 1, which is wrong since a Stack can have children with different z-index and a Stack must have the lowest z-index to not cover children.
Both menubar and menu widgets must be above gg_canvaslayout, and gg_canvaslayout must be above column widget. So in this case column widget must have z-index 0
This PR fixes current behavior, so Stack widget will have z-index = child_with_lowest_z_index - 1
Currently, the Stack (column/row) calculates it's z-index based on children's z-index. Stack will have
z-index = child_with_biggest_z_index - 1
, which is wrong since a Stack can have children with different z-index and a Stack must have the lowest z-index to not cover children.As an example, I have the following UI setup
Both
menubar
andmenu
widgets must be abovegg_canvaslayout
, andgg_canvaslayout
must be abovecolumn
widget. So in this casecolumn
widget must have z-index0
This PR fixes current behavior, so Stack widget will have z-index =
child_with_lowest_z_index - 1