mirror of https://github.com/anoshenko/rui.git
Fixing
This commit is contained in:
parent
8182ccfe84
commit
6fda42f014
|
|
@ -92,6 +92,10 @@ ul:focus {
|
||||||
bottom: 0px;
|
bottom: 0px;
|
||||||
right: 0px;
|
right: 0px;
|
||||||
left: 0px;
|
left: 0px;
|
||||||
|
max-width: 100%;
|
||||||
|
max-height: 100%;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ruiTooltipLayer {
|
.ruiTooltipLayer {
|
||||||
|
|
|
||||||
13
popup.go
13
popup.go
|
|
@ -1462,15 +1462,17 @@ func (popup *popupData) createLayerView() {
|
||||||
popup.popupView = NewGridLayout(session, params)
|
popup.popupView = NewGridLayout(session, params)
|
||||||
|
|
||||||
layerParams := Params{
|
layerParams := Params{
|
||||||
Style: popupLayerID,
|
Width: Percent(100),
|
||||||
MaxWidth: Percent(100),
|
Height: Percent(100),
|
||||||
MaxHeight: Percent(100),
|
Margin: Px(0),
|
||||||
CellWidth: popup.layerCellWidth(),
|
CellWidth: popup.layerCellWidth(),
|
||||||
CellHeight: popup.layerCellHeight(),
|
CellHeight: popup.layerCellHeight(),
|
||||||
}
|
}
|
||||||
|
|
||||||
if margin, ok := getBounds(popup, Margin, session); ok {
|
if margin, ok := getBounds(popup, Margin, session); ok {
|
||||||
layerParams[Padding] = margin
|
layerParams[Padding] = margin
|
||||||
|
} else {
|
||||||
|
layerParams[Padding] = Px(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
if location := popup.arrowType(); location != NoneArrow {
|
if location := popup.arrowType(); location != NoneArrow {
|
||||||
|
|
@ -1486,10 +1488,7 @@ func (popup *popupData) createLayerView() {
|
||||||
popup.layerContentView = NewGridLayout(session, layerParams)
|
popup.layerContentView = NewGridLayout(session, layerParams)
|
||||||
|
|
||||||
backgroundParams := Params{
|
backgroundParams := Params{
|
||||||
Width: Percent(100),
|
Style: popupLayerID,
|
||||||
Height: Percent(100),
|
|
||||||
Margin: Px(0),
|
|
||||||
Padding: Px(0),
|
|
||||||
Content: []View{popup.layerContentView},
|
Content: []View{popup.layerContentView},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue