Permalink
Browse files

Fix #620 [Edge] Forms are broken on wide screens

  • Loading branch information...
neexite
neexite committed Oct 22, 2018
1 parent e91c22e commit 4a59d73e5063e4ff0897d9f0435e02b51c1d34a3
Showing with 11 additions and 0 deletions.
  1. +11 −0 Website/Composite/scripts/source/top/ui/bindings/fields/FieldsBinding.js
@@ -76,6 +76,17 @@ FieldsBinding.prototype.onBindingInitialize = function () {
if ( firstgroup != null ) {
firstgroup.attachClassName ( FieldGroupBinding.CLASSNAME_FIRST );
}
/**
* Limit width becouse Edge smooth non-breakable items in columns #620
*/
if (Client.isEdge) {
var editopPage = this.getAncestorBindingByType(EditorPageBinding);
if (editopPage && this.bindingElement.childElementCount > 0) {
let columnWidth = 430;
this.bindingElement.style.maxWidth = (this.bindingElement.childElementCount + 1) * columnWidth - 1 + 'px';
}
}
}
/**

0 comments on commit 4a59d73

Please sign in to comment.