How to avoid overlay in Part sash container on resizing the window? [message #1693964] |
Wed, 29 April 2015 15:08 |
Thomas Elskens Messages: 159 Registered: September 2014 Location: Brussels - Belgium |
Senior Member |
|
|
Hello,
I have a master detail scenario, "implemented" with a horizontal part sash container.
On first sight, this works as expected, but when I resize the window, the parts of the sash container overlap.
If this is not very clear, I've added two screenshots to explain what I mean : the first one is the normal situation, the second one shows the detail pane trampling on the master pane after shrinking the window.
My first question: is this the desired default behaviour of a part sash container?
My second : is there a means to override this behaviour ? The container is tagged with a fx_fixedLayout, but that doesn't seem to do the trick...
Thomas Elskens
-
Attachment: Good.png
(Size: 77.70KB, Downloaded 170 times) -
Attachment: Bad.png
(Size: 64.17KB, Downloaded 188 times)
|
|
|
Re: How to avoid overlay in Part sash container on resizing the window? [message #1694023 is a reply to message #1693964] |
Thu, 30 April 2015 07:20 |
Thomas Schindl Messages: 6651 Registered: July 2009 |
Senior Member |
|
|
Hi,
On 29.04.15 17:08, Thomas Elskens wrote:
> Hello,
>
> I have a master detail scenario, "implemented" with a horizontal part sash container.
>
> On first sight, this works as expected, but when I resize the window, the parts of the sash container overlap.
>
> If this is not very clear, I've added two screenshots to explain what I mean : the first one is the normal situation, the second one shows the detail pane trampling on the master pane after shrinking the window.
>
> My first question: is this the desired default behaviour of a part sash container?
I can explain why it is that way but no i don't think it is. IMHO the
expected behavior is the right container is not moving above the left
one ever
>
> My second : is there a means to override this behaviour ? The container is tagged with a fx_fixedLayout, but that doesn't seem to do the trick...
>
You need to role your own renderer if you need to fix this today.
If the container is tagged with fx_fixedLayout we are using a
GridLayoutPane (which is a direct port of SWT-GridLayout) so we need to
fix that one and/or develop a new layout container who works as we expect.
File a bug report - I don't have a solution yet and we might not get
something into 2.0 unless you sponsor the development / provide patches
Tom
> Thomas Elskens
>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03858 seconds