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({ menus.addItemByPath("Window/Tabs/~", new apf.label({
class: "splits", class: "splits",
caption: "<span class='nosplit'></span>" caption: [
+ "<span class='twovsplit'></span>" ["span", { class: "nosplit" }],
+ "<span class='twohsplit'></span>" ["span", { class: "twovsplit" }],
+ "<span class='foursplit'></span>" ["span", { class: "twohsplit" }],
+ "<span class='threeleft'></span>" ["span", { class: "foursplit" }],
+ "<span class='threeright'></span>", ["span", { class: "threeleft" }],
["span", { class: "threeright" }],
],
onclick: function(e) { onclick: function(e) {
var span = e.htmlEvent.target; var span = e.htmlEvent.target;
if (!span || span.tagName != "SPAN") return; 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.$supportedProperties.push("caption", "for", "textalign");
this.$propHandlers["caption"] = function(value) { 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) { this.$propHandlers["for"] = function(value) {
forElement = typeof value == "string" ? self[value] : value; forElement = typeof value == "string" ? self[value] : value;