Resizing issue. Looking untidy.

2 posts, 0 answers
  1. Czeshirecat
    Czeshirecat avatar
    30 posts
    Member since:
    Jun 2016

    Posted 19 Jan Link to this post

    I've written a single dialog box to handle error messages, input box, yes/no dialog with metro touch theming.

    I show and hide controls and shuffle them into position as necessary.

    The file shows 3 images, top one is at design time and the bottom two at run time.

    My problem is that I need to catch the window layout after the theme adjusts the sizes of the controls but before they're displayed so I can perform a final shuffle. As you can see, especially on image 3, the position of the buttons, despite being anchored bottom and left/right are a long way off their original site. On image 2 I try to reposition them programatically, but the theme hasnt been fully applied and the button heights are returned to me as 24 when they're actually 32.

    Is there an event which I should trap to do this please?

  2. Hristo
    Admin
    Hristo avatar
    1016 posts

    Posted 20 Jan Link to this post

    Hi,

    Thank you for writing.

    All of the controls have the theme applied by the time the Load event of the form fires. Please try executing your logic there. 

    I hope this helps. Should you have further questions please do not hesitate to write back.

    Regards,
    Hristo
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top