Merge pull request #2691 from fredj/will-change

Add will-change CSS properties
This commit is contained in:
Frédéric Junod
2015-03-11 12:15:44 +01:00
2 changed files with 9 additions and 1 deletions
+6
View File
@@ -21,7 +21,12 @@
font-size: 10px; font-size: 10px;
text-align: center; text-align: center;
margin: 1px; margin: 1px;
will-change: contents, width;
} }
.ol-overlay-container {
will-change: left,right,top,bottom;
}
.ol-unsupported { .ol-unsupported {
display: none; display: none;
} }
@@ -101,6 +106,7 @@
display: block; display: block;
font-weight: normal; font-weight: normal;
font-size: 1.2em; font-size: 1.2em;
will-change: transform;
} }
.ol-touch .ol-control button { .ol-touch .ol-control button {
font-size: 1.5em; font-size: 1.5em;
+3 -1
View File
@@ -90,7 +90,9 @@ ol.Overlay = function(options) {
* @private * @private
* @type {Element} * @type {Element}
*/ */
this.element_ = goog.dom.createElement(goog.dom.TagName.DIV); this.element_ = goog.dom.createDom(goog.dom.TagName.DIV, {
'class': 'ol-overlay-container'
});
this.element_.style.position = 'absolute'; this.element_.style.position = 'absolute';
/** /**