andyhill Posted December 22, 2017 Share Posted December 22, 2017 I have an iPhone Portrait Form with all objects formatted correctly via Flex and LayOut Config. When phone is rotated all the object spacing fails, please show me how to resolve - thanks. Link to comment Share on other sites More sharing options...
Sherzod Posted December 22, 2017 Share Posted December 22, 2017 Hi, I think it's better to make a test case Best regards, Link to comment Share on other sites More sharing options...
andyhill Posted December 26, 2017 Author Share Posted December 26, 2017 I am out of the office at the moment so I cannot re-test with Delphi Tokyo 10.2.2 but with my previous Delphi (Berlin 10.1) on iPhoneX the results are above. Please show me how to catch "orientation" event plus adjust screen positioning to make it suitable for Landscape - Thanks. OrientationTest.zip Link to comment Share on other sites More sharing options...
andyhill Posted December 29, 2017 Author Share Posted December 29, 2017 Farshad, Can you please advise. Link to comment Share on other sites More sharing options...
mhmda Posted December 29, 2017 Share Posted December 29, 2017 I think it is relative to the layout settings thats you have mafe, I already posted an example of layout specially for mobile, please refer to it and see how I made it in the user area > sample projects, If you need further help you may post it here.... Good luck Link to comment Share on other sites More sharing options...
andyhill Posted December 29, 2017 Author Share Posted December 29, 2017 Mohammad, I have viewed your example. I use Container, Panel and Flex. Would you be so kind and please have a look at my code posted above and advise - thanks. Link to comment Share on other sites More sharing options...
mhmda Posted December 31, 2017 Share Posted December 31, 2017 hi Link to comment Share on other sites More sharing options...
Wicket Posted December 31, 2017 Share Posted December 31, 2017 Hi Mohammad, You helped me out on a mobile layout, which I spent hours trying to do, so again thanks for that. I would be willing to donate for you to create a comprehensive guide on layouts, from real basics, like what NOT to do. Also including a basic overview on best practices on where to add, and how to interact with CCS with Delphi controls. Perhaps start a new thread to Hague interest. Coming from a Delphi background I can echo the fact that the only thing I really struggle with is layouts. Sent from my Pixel using Tapatalk Link to comment Share on other sites More sharing options...
andyhill Posted December 31, 2017 Author Share Posted December 31, 2017 Thanks Mohammad, I had tried every concept I could think of, after putting everything back to what it should have been, the missing piece of code was:- config.minHeight = 450; Link to comment Share on other sites More sharing options...
mhmda Posted January 1, 2018 Share Posted January 1, 2018 Great to hear that Link to comment Share on other sites More sharing options...
Recommended Posts