This is a migrated thread and some comments may be shown as answers.

Resizing issue. Looking untidy.

1 Answer 62 Views
Themes and Visual Style Builder
This is a migrated thread and some comments may be shown as answers.
Czeshirecat
Top achievements
Rank 2
Iron
Iron
Czeshirecat asked on 19 Jan 2017, 04:54 PM

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?

1 Answer, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 20 Jan 2017, 02:43 PM
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.
Tags
Themes and Visual Style Builder
Asked by
Czeshirecat
Top achievements
Rank 2
Iron
Iron
Answers by
Hristo
Telerik team
Share this question
or