johnsamir
Advanced OT User
Hello, as title says how to prevent open container if there is no enough space for itorit and send it to another available container . Added this:
which actually added margin. but it does not prevent to open container if there is no enough space. Here is an example
so how to avoid to open container if there no enough space for it and close it or send it no another available panel?
Code:
margin-bottom: 1
Lua:
GameSidePanel < UIMiniWindowContainer
image-source: /images/ui/panel_side
image-border: 6
padding: 2
padding-top: 3
width: 175
focusable: false
on: true
margin-bottom: 1
layout:
type: verticalBox
$mobile:
padding: 0
width: 200
Code:
margin-bottom: 1
so how to avoid to open container if there no enough space for it and close it or send it no another available panel?