Setting minimum size on a textbox makes incorrectly increases the height

0
0

Hi,

When you specify a minimum size on a textbox it will cause an increase in height.

To reproduce:

  1. Start a new project
  2. Add a UserControl
  3. Change the font of the UserControl from 13px to 13pt
  4. Add a TextBox
  5. Set the Label.Text to “Bug”
  6. Set the Label.Position to “inside”
  7. Copy the size property which should have a height of 42
  8. Paste the size in the minium size property
  9. Notice the height changes from 42 to 62 in the properties window and designer

Thanks for looking into this.

Vincent

  • You must to post comments
0
0

You are correct, the MinimumSize should not change the auto size. Will log.

  • You must to post comments
0
0

Attached a sample.

Change the minimum size of the second box to 400;42 and see how this increases the height of the second textbox. If autosize being true is the reason then why is the first checkbox not 62 (as the second box will be after setting a minimum size)?

  • You must to post comments
0
0

MaximumSize or MinimumSize?

If you have AutoSize = true the minimum size will be the minimum size and Wisej will calculate the size according to the space needed and if it’s more than the minimum size then it’s correct.

If you set the maximum size that’s the maximum size.

  • vincent_
    Sorry, I’ve corrected my mistake in the title. It should be minimum size. In my steps to reproduce both have it set to true but the height should remain the same as before setting the minimum height equal to the size it has at that moment no?
  • vincent_
    imagine this scenario: I have a FlowLayoutPanel with two textboxes in it. Only the second box has flowbreak=true and a minimum width of 120 also both have fillweight of 1. This would result in two different height textboxes even tho they are eual on all other settings except the minimum size property.
  • You must to post comments
0
0

Hi Vincent

For reference, ¿what version of Wisej are you using?

Regards

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.