Fomantic-UI icon indicating copy to clipboard operation
Fomantic-UI copied to clipboard

[Visibility] Wrong minimum height set for placeholder element

Open donaggio opened this issue 7 years ago • 2 comments

Bug Report

Description

When a .ui.segment is made fixed using the visibility API, a placeholder element is created

to ensure that the page's position does not change when the element is "fixed" and removed from normal layout flow

Expected result

The placeholder element should have the same height of the "fixed" element

Actual result

The placeholder element has a min-height: 18em CSS property which makes it a lot taller then needed in the majority of cases

Testcase

https://jsfiddle.net/m97k6rqw/1/

Version

2.6.4

donaggio avatar Dec 11 '18 12:12 donaggio

The visibility API uses the class name placeholder, which is now used in the new 2.4 placeholder module. Changing the placeholder class name in visibility.js should fix this issue: https://jsfiddle.net/73ysw1zp/

ColinFrick avatar Dec 11 '18 12:12 ColinFrick

We will do this for 2.7 since it is an API breaking.

y0hami avatar Dec 11 '18 12:12 y0hami