Add base control class, to simplify stylesheet

This commit is contained in:
Antoine Abt
2014-04-30 12:23:57 +02:00
parent 04fd0ecf53
commit 0bec5b5590
7 changed files with 33 additions and 47 deletions

View File

@@ -64,10 +64,10 @@ ol.control.FullScreen = function(opt_options) {
googx.dom.fullscreen.EventType.CHANGE,
this.handleFullScreenChange_, false, this);
var element = goog.dom.createDom(goog.dom.TagName.DIV, {
'class': this.cssClassName_ + ' ' + ol.css.CLASS_UNSELECTABLE + ' ' +
(!googx.dom.fullscreen.isSupported() ? ol.css.CLASS_UNSUPPORTED : '')
}, button);
var cssClasses = this.cssClassName_ + ' ' + ol.css.CLASS_UNSELECTABLE +
' ' + ol.css.CLASS_CONTROL +
(!googx.dom.fullscreen.isSupported() ? ol.css.CLASS_UNSUPPORTED : '');
var element = goog.dom.createDom(goog.dom.TagName.DIV, cssClasses, button);
goog.base(this, {
element: element,