jfxtras-styles icon indicating copy to clipboard operation
jfxtras-styles copied to clipboard

ChoiceBox - width initially is smaller than its contents

Open runiter opened this issue 5 years ago • 2 comments

I add a number of text items to a ChoiceBox, but when the stage is shown, the width is not correctly calculated. Only after clicking on the ChoiceBox the width is calculated to correct size that fits all its items:

Initially (incorrect size): image

After clicking on ChoiceBox and selecting another item (correct size):

image

runiter avatar Feb 23 '20 03:02 runiter

Hi Saeid,

This is most probably a problem with JavaFX itself. If so it needs to be reported in the JavaFX bug tracker. Can you double check it also happens in Modena?

Thx.

dukke avatar Feb 23 '20 16:02 dukke

Hi Pedro, I forgot to mention that I did try this in Modena and in there it works fine. So this problem seems specific to JMetro.

runiter avatar Feb 24 '20 03:02 runiter