Hello all,
I am having a problem with sizing. I have main body of my form inside a scrollbox, this part works fine. Inside the box I have 3 panels, each alTop aligned. The bottom 2 panels will be sized dynamically as items are added.
The problem is with the top panel (Work Orders), it has a label alTop aligned, a panel alBottom aligned with an image alClient aligned with an up or down indicator to resize the Work Orders panel, and finally a TWebScrollbox alClient aligned inside.
I will add Work Order items from a database, right now there is a button to add them. They are added inside a Panel alTop aligned with 1 - 3 images alRight depending on criteria and a label alClient aligned. The panel will hold 2 Work Orders before scrolling is required, and the used can expand the Work Order panel to see more than 2 at a time while still scrolling if necessary.
Problem 1) Once 3 or more Work Orders are added and then the Work Order panel is expanded then collapsed the Work Order Item overflows the Scroll box. I reload the Items on collapsing to prevent this, but obviously that is undesirable.
Problem 2) The biggest, and most frustrating is here. When running in Chrome Dev Tools on compile all works fine (With Item reload), however if a mobile device is selected and you refresh the browser you get completely different results! The Scroll Box overflows when adding the first Work order Item.
I have found web positioning very challenging. Any help would be appreciated.
Gary
TestTMSUI.zip (68.5 KB)