Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

[Xwt] Always call the base methods so widgets are sized correctly #140

Closed
wants to merge 1 commit into from

Conversation

alanmcgovern
Copy link
Member

If we do not call base.SetBackendSize then the widget is not added to
the queue of widgets which need resizing. As such, Window.AdjustSize
will never be invoked and top level dialogs will end up completely
ignoring the initial size that is set for them. By invoking the base
methods unconditionally, we get the correct/desired behaviour.

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=9203

If we do not call base.SetBackendSize then the widget is not added to
the queue of widgets which need resizing. As such, Window.AdjustSize
will never be invoked and top level dialogs will end up completely
ignoring the initial size that is set for them. By invoking the base
methods unconditionally, we get the correct/desired behaviour.

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=9203
@alanmcgovern
Copy link
Member Author

This commit breaks the layout for the dialog when run under MD, as such we should not merge this exactly as is

@inorton
Copy link

inorton commented Jan 15, 2013

Might this also fix issue #120 ?

@DevJohnC
Copy link

Yes and #143

@slluis
Copy link
Member

slluis commented Jan 16, 2013

I committed an alternative fix.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants