mrossen Active Member Licensed User Longtime User Mar 25, 2012 #1 Hi, After I tried to update my layout with the new script designer my layout will not show correct? It loads the main layout and show the back ground but the other view will not show Mogens Last edited: Mar 25, 2012
Hi, After I tried to update my layout with the new script designer my layout will not show correct? It loads the main layout and show the back ground but the other view will not show Mogens
mrossen Active Member Licensed User Longtime User Mar 25, 2012 #2 It seems to be the ScrollView panel there is the problem If I remove the ScrollView and loads my main layout to the panel the layout show correct. If I use Scrollview it does not. I have tried to use another layout file there is not created with the new B4A v.1.86 version. Then the code works with scrollview. This does not work B4X: PanelMain = ScrollViewMain.Panel Activity.AddView(ScrollViewMain, 0, 0, 100%x, 100%y - 50dip) Activity.AddView(PanelChangePassword, 0, 0, 100%x, 100%y - 50dip) PanelMain.Height = 430dip PanelMain.LoadLayout("main") This works B4X: Activity.AddView(PanelMain, 0, 0, 100%x, 100%y - 50dip) Activity.AddView(PanelChangePassword, 0, 0, 100%x, 100%y - 50dip) PanelMain.Height = 430dip PanelMain.LoadLayout("main") Mogens Upvote 0
It seems to be the ScrollView panel there is the problem If I remove the ScrollView and loads my main layout to the panel the layout show correct. If I use Scrollview it does not. I have tried to use another layout file there is not created with the new B4A v.1.86 version. Then the code works with scrollview. This does not work B4X: PanelMain = ScrollViewMain.Panel Activity.AddView(ScrollViewMain, 0, 0, 100%x, 100%y - 50dip) Activity.AddView(PanelChangePassword, 0, 0, 100%x, 100%y - 50dip) PanelMain.Height = 430dip PanelMain.LoadLayout("main") This works B4X: Activity.AddView(PanelMain, 0, 0, 100%x, 100%y - 50dip) Activity.AddView(PanelChangePassword, 0, 0, 100%x, 100%y - 50dip) PanelMain.Height = 430dip PanelMain.LoadLayout("main") Mogens
mrossen Active Member Licensed User Longtime User Mar 25, 2012 #3 Solved. I was missing B4X: PanelMain.Width = 100%x Mogens Upvote 0