B4J Question Loading layout in pane will not stretch/resize to pane size

MarcRB

Active Member
Licensed User
Longtime User
Hello,

I made a layout by abstract designer. It is a layout for using in container like a pane.
All views are anchord and it will be resized perfect, as I can see in Wysiwyg preview window.

But when I load that layout into a pane on a page , then the layout has a fixed size.
The pane it self is anchord all sides so the pane will stretch at window resize, but not the layout in that pane.

How do I set the resize for that inner layout?
 

DonManfred

Expert
Licensed User
Longtime User
But when I load that layout into a pane on a page , then the layout has a fixed size.
Show us some code. Better upload a small project showing the problem.
 
Upvote 0

MarcRB

Active Member
Licensed User
Longtime User
I was trying to make a small test project, but I couldn't reproduce my issue.
In the small project it is working fine.

So I took a better look at the bigger project and I noticed the layout is not loading by loadlayout(..), but by AddView. Addview has width and height properties but it isn't scaling at resize.

I used addview in order to have the code of that layout in a different class.

addview instead of loadlyout:
'new layout in inner panel with code in class
Private Locations As Locations_c
Dim panLocations As Pane = Locations.initialize
PaneContent.RemoveAllViews
PaneContent.addview(panLocations,0,0,600,500)

I think I have to search a better way for handling multi layouts and a left menu column for my desktop application. Now I combined, B4Xpages, with drawer, and loading layouts in panels.
I think it is unnecessary complex now.
 
Last edited:
Upvote 0
Top