Skip to content

Commit e015242

Browse files
committed
Set INITIAL_LAYOUT to auto
Vertical and horizontal alignment works not stable across all browsers and causes inifinite loading logo issue (#9). With initial layout set to auto, this issue does not reproduce. This is a workaround setting until the bug is fixed.
1 parent 626bdc5 commit e015242

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ The visibility control is currently implemented for specific device roles, devic
200200
Actual multi-cable connections between the end-devices a replaced by the direct logical connection once the passive devices are hidden. This logical direct link may be displayed regardless of the passive devices visibility in addition to the cabling across patch pannels if you set DISPLAY_LOGICAL_MULTICABLE_LINKS plugin paramenter to True. DISPLAY_LOGICAL_MULTICABLE_LINKS is set to False by default. This parameter only affects the initical logical link visibility. With hidden passive devices, it is always being displayed.<br/>
201201
<br/>
202202

203-
Device role based layers are ordered vertically by default. You can control this behavior with INITIAL_LAYOUT plugin parameter. Valid options are 'vertical', 'horizontal', and 'auto'.<br/>
203+
Device layers are ordered automatically by default. You can control this behavior with INITIAL_LAYOUT plugin parameter. Valid options are 'vertical', 'horizontal', and 'auto'.<br/>
204204
'auto' layout relies on NeXt UI dataprocessor best-effort algorithms. It spreads the Nodes across the view so they would be as distant from each other as possible. You may use it if the vertical and horizontal initial layout does not work properly in your browser (this is the issue to be fixed).
205205

206206

nextbox_ui_plugin/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
# Defines the initial layer alignment direction on the view
143143
INITIAL_LAYOUT = PLUGIN_SETTINGS.get("INITIAL_LAYOUT", 'vertical')
144144
if INITIAL_LAYOUT not in ('vertical', 'horizontal', 'auto'):
145-
INITIAL_LAYOUT = 'vertical'
145+
INITIAL_LAYOUT = 'auto'
146146

147147

148148
def if_shortname(ifname):

0 commit comments

Comments
 (0)