This commit is contained in:
Mirco Wittrien 2020-01-05 11:12:24 +01:00
parent adaf33edae
commit 29dda4259e
2 changed files with 4 additions and 9 deletions

View File

@ -7657,7 +7657,6 @@
align: LibraryComponents.Flex.Align.CENTER,
children: [
this.props.label ? BDFDB.ReactUtils.createElement(LibraryComponents.Flex.Child, {
wrap: true,
children: BDFDB.ReactUtils.createElement(LibraryComponents.SettingsLabel, {
mini: this.props.mini,
label: this.props.label
@ -8064,20 +8063,16 @@
}
},
onMouseEnter: e => {
var ele = e.currentTarget;
var inner = ele.firstElementChild;
if (BDFDB.DOMUtils.getRects(ele).width < BDFDB.DOMUtils.getRects(inner).width) {
if (BDFDB.DOMUtils.getRects(e.currentTarget).width < BDFDB.DOMUtils.getRects(e.currentTarget.firstElementChild).width) {
this.scrolling = true;
inner.style.setProperty("display", "block", "important");
e.currentTarget.firstElementChild.style.setProperty("display", "block", "important");
this.scroll(1);
}
},
onMouseLeave: e => {
var ele = e.currentTarget;
var inner = ele.firstElementChild;
if (this.scrolling) {
delete this.scrolling;
inner.style.setProperty("display", "inline", "important");
e.currentTarget.firstElementChild.style.setProperty("display", "inline", "important");
this.scroll(0);
}
},

File diff suppressed because one or more lines are too long