equal
deleted
inserted
replaced
61 testEm.appendTo(this.element); |
61 testEm.appendTo(this.element); |
62 barThick = testEm.width(); |
62 barThick = testEm.width(); |
63 testEm.remove(); |
63 testEm.remove(); |
64 testCalc = $('<div class="test-calc"></div>'); |
64 testCalc = $('<div class="test-calc"></div>'); |
65 testCalc.appendTo(this.element); |
65 testCalc.appendTo(this.element); |
66 this.support.calc = true; |
66 this.support.calc = false; |
67 testCalc.remove(); |
67 testCalc.remove(); |
68 if (options.orientation != null) { |
68 if (options.orientation != null) { |
69 if (options.orientation === "vertical") { |
69 if (options.orientation === "vertical") { |
70 this.horizontal = false; |
70 this.horizontal = false; |
71 } else if (options.orientation === "horizontal") { |
71 } else if (options.orientation === "horizontal") { |
155 } else { |
155 } else { |
156 firstdiv.after(splitterHTML); |
156 firstdiv.after(splitterHTML); |
157 } |
157 } |
158 this.barThicknessPx = barThick / 2; |
158 this.barThicknessPx = barThick / 2; |
159 this.barThickness = .04; |
159 this.barThickness = .04; |
160 this.barPosition = options.barPosition || 0.5; |
160 this.barPosition = 0.5; |
161 this.dragging = false; |
161 this.dragging = false; |
162 this.initMouse = 0; |
162 this.initMouse = 0; |
163 this.initBarPosition = 0; |
163 this.initBarPosition = 0; |
164 this.resize(); |
164 this.resize(); |
165 this.element.on('resize', this.onResize); |
165 this.element.on('resize', this.onResize); |