Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong visualization on Firefox 80.0.1 #1626

Closed
TorakikiSan opened this issue Sep 13, 2020 · 3 comments
Closed

Wrong visualization on Firefox 80.0.1 #1626

TorakikiSan opened this issue Sep 13, 2020 · 3 comments

Comments

@TorakikiSan
Copy link

Hi Olton!

After updated Firefox to 80.0 version, some compatibility issues occurred with the latest version of Metro, 4.3.10, (also with 4.4).
Code:

<DIV class="row mb-2">
   <DIV class="cell-2 offset-1">
      <LABEL class="text-bold fg-grayBlue" for="MACHINE">Machine</LABEL>
      <INPUT id="MACHINE" name="machine" class="input-small" data-cls-input="text-bold" data-role="input" data-validate="maxlength=50" data-default-value="mrdo" />
   </DIV>
   <DIV class="cell-3">
      <LABEL class="text-bold fg-grayBlue" for="DESCRIPTION">Description</LABEL>
      <INPUT id="DESCRIPTION" name="description" class="input-small" data-cls-input="text-bold" data-role="input" data-validate="maxlength=100" data-default-value="Mr. Do!" />
   </DIV>
</DIV>

and is displayed like this

input1

The Description field is perfect, while Machine is missing the right side of the field and the cross to clear the field is below the Description field.

If I remove

data-cls-input="text-bold"

from Machine field, this is displayed like

input2

The cross to clear the field is in the middle of the two fields Machine and Description and the right side of the field is closed correctly.

The problem also occurs with fields with data-role = "calendarpicker". Code

   <DIV class="cell-2">
      <LABEL class="text-bold fg-grayBlue" for="LAST_RUN">Last Run</LABEL>
      <INPUT id="LAST_RUN" name="last_run" class="input-small"
             data-role="calendarpicker"
             data-cls-input="text-bold"
             data-cls-calendar-header="bg-grayBlue"
             data-cls-calendar="compact"
             data-clear-button="true"
             data-format="%d/%m/%Y"
             data-input-format="%d/%m/%Y"
             data-default-value="" />
   </DIV>

Displayed as

input3

The problem appears to occur with class = "cell-2" or less.

In your opinion, is it a Firefox problem?

@olton olton added the Fixed label Sep 13, 2020
@olton olton added this to the 4.4.0 milestone Sep 13, 2020
@olton
Copy link
Owner

olton commented Sep 13, 2020

Firefox used min-width=200 for input. I fixed it in 4.4.0. For 4.3.10 you can add global style:

<style>
.input input {
    min-width: 0;
}
</style>

@olton
Copy link
Owner

olton commented Sep 13, 2020

Example for 4.4.0
https://codepen.io/olton/pen/KKzedKW

@TorakikiSan
Copy link
Author

Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants