Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

Blake-Madden
Copy link
Contributor

I don't see a way to force a max height (only size, which we don't want since the width should always be resizable). However, for a single-line dialog I fixed it so that the button row remains at the bottom of the dialog when resized. That seems much nicer looking then before.
#25739

Copy link
Contributor

@vadz vadz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, but I hoped using wxTLW::SetMaxSize(wxSize(-1, whatever)) would work, have you tried it and confirmed that it didn't? It would be probably better to make it work, it should be possible, I think...

@@ -81,7 +81,8 @@ bool wxTextEntryDialog::Create(wxWindow *parent,
return false;
}

SetMinSize( sz );
if (sz.IsFullySpecified())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, why do we need this?

topsizer->Add(buttonSizer, wxSizerFlags().Expand().DoubleBorder());
}

SetSizer( topsizer );

topsizer->Fit( this );
if (sz.IsFullySpecified())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This also seems suspicious, why should we do this for this particular dialog and not any other ones?

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

Successfully merging this pull request may close these issues.

2 participants