Sberla Active Member Licensed User Longtime User Feb 28, 2017 #1 Hello, I am trying to create a panel with scroll , but have a problem with panel layout. between the scroll.panel.height=panel1.height there is a huge amount of space. if I define the height from the layout it cuts the last button view, if I leave space between the last button view and the panel bottom border there is a hug amount of space. How can I define the exact space up to the last button view and panel bottom border and eliminate the space between ?? Code: Copy Activity.LoadLayout("2") scrview.Panel.LoadLayout("1") scrview.Panel.Height=Panel1.Height Attachments pic1.png 1.8 KB · Views: 559 pic2.png 6.9 KB · Views: 473 pic3.png 5.8 KB · Views: 461 pic4.png 5.9 KB · Views: 497
Hello, I am trying to create a panel with scroll , but have a problem with panel layout. between the scroll.panel.height=panel1.height there is a huge amount of space. if I define the height from the layout it cuts the last button view, if I leave space between the last button view and the panel bottom border there is a hug amount of space. How can I define the exact space up to the last button view and panel bottom border and eliminate the space between ?? Code: Copy Activity.LoadLayout("2") scrview.Panel.LoadLayout("1") scrview.Panel.Height=Panel1.Height
F FrankBerra Active Member Licensed User Longtime User Feb 28, 2017 #2 You sholud also take care about the height of the scrollview itself: Code: Copy scrview.Height= ... for example with something like: Code: Copy if Panel1.Height < 100%y then scrview.Height=Panel1.Height else scrview.Height=100%y end if Upvote 0
You sholud also take care about the height of the scrollview itself: Code: Copy scrview.Height= ... for example with something like: Code: Copy if Panel1.Height < 100%y then scrview.Height=Panel1.Height else scrview.Height=100%y end if