fix split configuration menu items

pull/449/head
nightwing 2017-08-06 00:14:37 +04:00
rodzic 4e2146651d
commit cdde0b56c2
2 zmienionych plików z 14 dodań i 7 usunięć

Wyświetl plik

@ -256,12 +256,14 @@ define(function(require, exports, module) {
menus.addItemByPath("Window/Tabs/~", new apf.label({
class: "splits",
caption: "<span class='nosplit'></span>"
+ "<span class='twovsplit'></span>"
+ "<span class='twohsplit'></span>"
+ "<span class='foursplit'></span>"
+ "<span class='threeleft'></span>"
+ "<span class='threeright'></span>",
caption: [
["span", { class: "nosplit" }],
["span", { class: "twovsplit" }],
["span", { class: "twohsplit" }],
["span", { class: "foursplit" }],
["span", { class: "threeleft" }],
["span", { class: "threeright" }],
],
onclick: function(e) {
var span = e.htmlEvent.target;
if (!span || span.tagName != "SPAN") return;

Wyświetl plik

@ -13796,7 +13796,12 @@ apf.label = function(struct, tagName) {
*/
this.$supportedProperties.push("caption", "for", "textalign");
this.$propHandlers["caption"] = function(value) {
this.$caption.textContent = value;
if (typeof value == "string")
this.$caption.textContent = value;
else if (Array.isArray(value)) {
this.$caption.textContent = "";
apf.buildDom(value, this.$caption);
}
};
this.$propHandlers["for"] = function(value) {
forElement = typeof value == "string" ? self[value] : value;