Cosmetic Bug Report: mistake in UI box width calculation

OceanHydroAU
Collaborator

Cosmetic Bug Report: mistake in UI box width calculation

OceanHydroAU
Collaborator
Collaborator

The width of pop-up help-text boxes is computed from the number of characters in the tip, disregarding newlines.  This is sub-optimal - an easy fix would be to compute the width upto the first newline (if any) or the end.

 

e.g. This tip text (note the \n):-

'(Optional, Recommended) Pick a point or \nline to locate where to insert your foil.'

Creates a nice hint like this:-

pic 2020-06-01 10.50.55_01.png

 

But horrible full-help owing to the width-calc bug:-

Screen Shot 2020-06-01 at 10.49.30 am.png

 

 

However, changing the tip to something short:  'Pick a point or to locate foil.'

pic 2020-06-01 10.51.55_02.png

 

Results in the bug not causing a problem, and a nice tidy help popup:-

Screen Shot 2020-06-01 at 10.46.50 am.png

 

Many thanks if you can fix that one for us 🙂

0 Likes
Reply
274 Views
0 Replies
Replies (0)