RFR: 5067: Content assist uses too much screen area [v2]
Marcus Hirt
hirt at openjdk.java.net
Tue Oct 27 11:57:18 UTC 2020
On Mon, 26 Oct 2020 21:47:28 GMT, Miroslav Wengner <mwengner at openjdk.org> wrote:
>> application/org.openjdk.jmc.ui/src/main/java/org/openjdk/jmc/ui/misc/QuantityKindProposal.java line 60:
>>
>>> 58:
>>> 59: public class QuantityKindProposal {
>>> 60: private static final int POPUP_ROW_HEIGHT = 15;
>>
>> How can you know this would be the height? This is font-related, no?
>
> it's used for calculating a popup width and height : adapter.setPopupSize(new Point(POPUP_MAX_WIDTH, popupHeight)); I've not find a way how to get a font size. So I've estimated nice fit for the current setup, as previously was hardcoded everything. Do you think the name is not so good ?
I think this is a pseudo-implementation that may just be confusing. Personally I'd prefer the previous fixed size solution - that one will be understandable to all users, no matter the font settings. This one runs the risk of feeling slightly off / buggy to users depending on the font settings.
-------------
PR: https://git.openjdk.java.net/jmc/pull/139
More information about the jmc-dev
mailing list