Ensure FullScreen button has classname set on render.

When the FullScreen icon is first rendered, the button within it is not having the inactive classname set. The class name is set on toggling fullscreen on/off - just not being set on render.
This commit is contained in:
Alan Moffat committed 2022-03-04 11:13:02 +00:00
1 parent 0c23e17e13
commit 87d87a155a
2 files changed
+20

No files matched your search

+1
View File
@@ -165,6 +165,7 @@ class FullScreen extends Control {
const tipLabel = options.tipLabel ? options.tipLabel : 'Toggle full-screen';
this.button_.setAttribute('type', 'button');
this.setClassName_(this.button_, this.isInFullscreen_);
this.button_.title = tipLabel;
this.button_.appendChild(this.labelNode_);