Closed michalkotas closed 7 years ago
You're right, I miss that use case :) thanks for the report and example :D What would be the best fix then ? Force the widget width at the max available ?
What does your fix do exactly ?
So for now I force the widget at the maximum of the pages, I think it's the best way to have coherent UI and not an infinite loop. You can always override this behavior yourself by listening window.resize event and set the width you want (but less than max available) Thanks again ! :)
Thanks for quick update, infinite loop issue has been resolved.
..but there's a strange resize behavior - details in #15
Ho I see the override stay even when windows gets bigger... I'll try to look at it soon! Can you open a new issue for this? The most urgent was the infinite loop witch is fixed it will be more clear. Thanks :)
If widget width (size[0]) is bigger than current _nbColumn 'while' loop in _positionWidget will never end.
while ((lines[column] > 0) || !haveEnoughSpace)
Tested on version 1.1.4
How to reproduce:
<widget [size]="[10, 1]" widgetId="large"><div widgetHandle class="head handle">Large widget [10, 1] handle only on text</div></widget>
Quick hack solution is to add itemWiderThanContainer: