question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: ion-spinner moving when position absolute (possible regression)

See original GitHub issue

Bug Report

Ionic version: [x] 4.x

Current behavior: When setting a position absolute to the ion-spinner won’t hold in place as it used to but is now moving slowly to the right.

Expected behavior: Spinner stays in place even with absolute positioning

Possible regression: Ionic v.4.7.1 -> all good, spinner stays in place Ionic v4.8.1 -> spinner is moving

Related code:

<ion-content>
    <ion-spinner color="primary"></ion-spinner>
</ion-content>
ion-spinner {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

Other information:

I observed the behavior in an Angular app as well in a Stencil PWA, therefore I would say it’s a core issue.

Screenshot:

Capture d’écran 2019-09-01 à 13 17 44

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
amandaejohnstoncommented, Jan 24, 2022

This has (finally!) been resolved, via https://github.com/ionic-team/ionic-framework/pull/24643. The fix will be available in a future release of Ionic 👍 It turns out that this was exclusive to the circular type spinner, and was triggered by adding transform, rather than position: absolute.

1reaction
brandyscarneycommented, Sep 25, 2019

Thanks for the issue! I was able to reproduce this in core as well: https://codepen.io/brandyscarney/pen/VwZRBro

Read more comments on GitHub >

github_iconTop Results From Across the Web

bug: ion-spinner moving when position absolute (possible ...
Current behavior: When setting a position absolute to the ion-spinner won't hold in place as it used to but is now moving slowly...
Read more >
Strange behavior from an absolute positioned element
But the problem is, i have a div with position:absolute; and this box has several elements underneath it. When i move the mouse...
Read more >
CSS position absolute and full width problem - Stack Overflow
The navigation gets the 100% of the wrapper which is max 1003px width. i want it to stretch to the maximum without changing...
Read more >
129746 - Position "absolute" is not working properly in RTL ...
In RTL mode, absolute position was not working properly for element, whose parent element has left vertical scroll bar.
Read more >
How to make absolute positioned elements overlap their ...
Let's say you need to absolute position something… And then you try to move it in some direction, and boom it disappears…
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found