Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

fix(popover): avoid flash of unstyled content #4428

Closed
wants to merge 1 commit into from

Conversation

bikegriffith
Copy link

Fixes #4427

@RobJacobs
Copy link
Contributor

This has been fixed under PR #4363 and PR #4379. This updated plunk shows the behavior with the latest code from master.

@@ -149,8 +149,10 @@ angular.module('ui.bootstrap.tooltip', ['ui.bootstrap.position', 'ui.bootstrap.s
if (!tooltip || !tooltip.html()) { return; }

if (!positionTimeout) {
tooltip.hide(); // Hide to avoid FOUC until $timeout completes
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

positionTooltip is called frequently in some cases for an already open tooltip, so this could cause flickering.

@bikegriffith
Copy link
Author

Thanks @RobJacobs. Just realizing this while auditing the code again and testing against a hacked version of 0.13.4 in my app. Will shut this down.

@RobJacobs
Copy link
Contributor

@bikegriffith We're doing some more work to tighten up when the positioning method gets invoked and how often. Next significant change is PR #4418.

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

Successfully merging this pull request may close these issues.

2 participants