mirror of
https://bitbucket.org/bellord13/kit.git
synced 2026-11-13 19:06:11 +03:00
fix
This commit is contained in:
+11
-2
@@ -113,7 +113,7 @@ kit.PluginManager.register('align',function(module, exports, require) {
|
||||
|
||||
|
||||
/**
|
||||
* @param node
|
||||
* @param node {HTMLElement}
|
||||
* @param axis
|
||||
* @property start
|
||||
* @property end
|
||||
@@ -360,7 +360,15 @@ kit.PluginManager.register('align',function(module, exports, require) {
|
||||
* @return {AlignCalc}
|
||||
*/
|
||||
AlignCalc.prototype.updateMetrics = function(){
|
||||
var node = this.nodeMetricsLine.node;
|
||||
var o = node.style.overflow, w = node.style.width, h = node.style.height;
|
||||
node.style.overflow = 'hidden';
|
||||
node.style.width = '';
|
||||
node.style.height = '';
|
||||
this.limiterMetricsLine.update();
|
||||
node.style.overflow = o;
|
||||
node.style.width = w;
|
||||
node.style.height = h;
|
||||
this.parentMetricsLine.update();
|
||||
this.nodeMetricsLine.update();
|
||||
return this;
|
||||
@@ -568,7 +576,7 @@ kit.PluginManager.register('align',function(module, exports, require) {
|
||||
this.reset(axis === 'horizontal', axis === 'vertical');
|
||||
|
||||
this.__setAdditionalStyles();
|
||||
|
||||
//todo
|
||||
this.condition[axis].direction = direction;
|
||||
this.condition[axis].align = align;
|
||||
|
||||
@@ -623,6 +631,7 @@ kit.PluginManager.register('align',function(module, exports, require) {
|
||||
* @memberOf kit
|
||||
*/
|
||||
var align = {
|
||||
AlignCalc: AlignCalc,
|
||||
Class: AlignClass,
|
||||
getInstance: function (node, parentNode) {
|
||||
if(node instanceof HTMLElement && node.kit && node.kit.align) {
|
||||
|
||||
Reference in New Issue
Block a user