what you describe is a historic (and imperfect) behaviour of the stylesheets 
feature.

there is no workaround, and you should not expect any fixes ever,
because undoing will screw up every form created in the last 15 years.
(it started with v2004.2 or thereabouts)

basically, what happens is that a 133% or 75% scaling is applied to the object 
height,
to account for the DPI difference (96 for Windows and 72 for Mac).

but font size in 4D is an integer so there will be some rounding.
worse, if you move a form from Mac to Windows, then Windows back to Mac,
the heights will change permanently because of rounding twice.

it is unfortunate, but to answer your question,

- use automatic stylesheets for the UI don't use anything else, ever
- for printing, where fonts are important, create 1 form per platform

about removing stylesheets and setting the font by code,
it kind of works, it could be a solution.
but you need to think about code maintenance.

4D values compatibility, bad features die hard.
that said, stylesheets are replaced by CSS in project mode,
which suggests that it is know to have more flaws than merits.

On Mar 12, 2020, at 11:25, Greg Loya via 4D_Tech 
<4d_tech@lists.4d.com<mailto:4d_tech@lists.4d.com>> wrote:
I'm not sure why having a stylesheet changes the behavior for automatic 
resizing.  How are people dealing with this?

**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to