Midway.js icon indicating copy to clipboard operation
Midway.js copied to clipboard

Delay in centering

Open msisto opened this issue 12 years ago • 2 comments

Good morning, I'm experiencing a pretty significant delay between page load and the element being centered. About a half-second or so.

I was able to work around this by adding the following to my stylesheet:

.midway-vertical,
.midway-horizontal {
  display: none;
}

This works because Midway() applies display: inline; to the element when centering, but it still feels kind of dirty. Do you have any suggestions? Have you encountered this?

This is a pretty green-pasture project with almost no CSS to cause conflict. Just normalize.css.

msisto avatar Sep 17 '13 14:09 msisto

I have the same issue. This looks like a good workaround for the moment.

fluke avatar Oct 19 '13 10:10 fluke

I am having a similar issue. The vertical alignment works on load but the horizontal doesn't work until the page is resized?

display: none; seems to have fixed it though.

roofaless avatar Jun 08 '14 13:06 roofaless