bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

Popover too small for its content with IE 11

Open jlebit opened this issue 11 years ago • 6 comments

The popover is not correctly sized with Internet Explorer 11. The following happens:

popover-bug-ui-bootstrap

The issue happens with version 0.13.4 but seems to work with previous version (0.13.3).

You can reproduce the issue here: http://jsfiddle.net/tjruzpmb/1/

jlebit avatar Sep 24 '15 06:09 jlebit

tooltips also have a positioning/sizing problem on IE 11

terryt2000 avatar Sep 29 '15 13:09 terryt2000

Here is a plunk with the latest from master. Does not seem to be a problem anymore.

RobJacobs avatar Sep 29 '15 14:09 RobJacobs

Using angular-ui/bootstrap-bower#febda42 I was still able to repoduce the issue in my private project.

The overflow is caused by an explicit width/height which is set by tooltip provider. (ui-bootstrap.tpls.js line 3407 / 3408).

Somehow the explicit width/height is applied to Internet Explorer, but firefox/chrome don't have those set (just top/left). Maybe the positionTimeout isn't triggered in those browsers?

Removing the explicit width/height seems solves the issue. But I don't know if this would cause another issue?

cvanleeuwen avatar Oct 05 '15 09:10 cvanleeuwen

@cvanleeuwen Width and height are no longer being set: https://github.com/angular-ui/bootstrap/blob/master/src/tooltip/tooltip.js#L162

RobJacobs avatar Oct 05 '15 12:10 RobJacobs

Ah my bad! I thought I was using the latest master, but angular-ui/bootstrap-bower is not same as angular-ui/bootstrap master.

Is there a way to replace/test angular-ui/bootstrap-bower with angular-ui/bootstrap via bower? Or should I run it as a custom build?

cvanleeuwen avatar Oct 06 '15 09:10 cvanleeuwen

This is fixed in the 0.14.0 release.

RobJacobs avatar Oct 09 '15 13:10 RobJacobs