jmix icon indicating copy to clipboard operation
jmix copied to clipboard

Incorrect TextField inline-icon alignment

Open Flamesson opened this issue 2 years ago • 0 comments

Sample project: https://github.com/izumi-jmix/icon-and-font-size

Steps to reproduce:

  1. Change caption position of a
    , like:
<form id="form" dataContainer="userDc" captionPosition="TOP">
  1. Add a <textField>, bound it to a property. Also add an icon and "inline-icon" stylename, like:
<textField id="usernameField" property="username" editable="false" 
           icon="CHECK_CIRCLE" stylename="inline-icon"/>
  1. Change size at theme settings to "Small", or, at least "Medium".

Theme settings

  1. Bug sample:

Incorrect alignment

Notes:

  • Margin-top of icon is not scaled, depending on theme-size. Probably it is the source of the problem.

Flamesson avatar Aug 25 '22 08:08 Flamesson