Skip to content
Code-Schnipsel Gruppen Projekte
Commit bbe1030d erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

Merge branch 'dev'

Übergeordnete 3c086d9c b87b330f
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
1 Merge Request!63Update 'next-2.x' with latest changes from 'main'
......@@ -49,7 +49,8 @@
color: #4b595e;
float: left;
line-height: 20px;
padding: 10px 0 10px 10px;
overflow: hidden;
padding: 10px 5px 10px 10px;
text-align: left;
width: calc(100% - 30px);
}
......
......@@ -148,9 +148,16 @@ define('qui/controls/contextmenu/Item', [
// click events on the text
this.$Container.addEvents({
click : this.$onClick,
mousedown: this.$onMouseDown,
mouseup : this.$onMouseUp
click : this.$onClick,
mousedown : this.$onMouseDown,
mouseup : this.$onMouseUp,
mouseenter: function () {
if (self.$Text.getSize().x < self.$Text.getScrollSize().x) {
self.$Text.set('title', self.getAttribute('text'));
} else {
self.$Text.set('title', null);
}
}
});
......@@ -177,9 +184,7 @@ define('qui/controls/contextmenu/Item', [
}
if (this.getAttribute('text') && this.getAttribute('text') !== '') {
var Text = this.$Elm.getElement('.qui-contextitem-text');
Text.set({
this.$Text.set({
html: this.getAttribute('text')
});
......@@ -268,7 +273,6 @@ define('qui/controls/contextmenu/Item', [
* event : on inject
*/
$onInject: function () {
},
/**
......@@ -581,8 +585,13 @@ define('qui/controls/contextmenu/Item', [
}
if (key === 'text') {
this.$Elm.getElement('.qui-contextitem-text')
.set('html', value);
this.$Text.set('html', value);
if (this.$Text.getSize().y <= this.$Text.getScrollSize().y) {
this.$Text.set('title', value);
} else {
this.$Text.set('title', null);
}
return;
}
......
0% Lade oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren