This commit is contained in:
2021-11-18 20:48:04 +03:00
parent 4e9df6c81b
commit 5e7b4c6707
22 changed files with 1160 additions and 345 deletions
+11 -2
View File
@@ -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) {