mirror of https://github.com/anoshenko/rui.git
Bug fixing
This commit is contained in:
parent
f49b73e979
commit
31489dbc03
|
@ -147,6 +147,11 @@ ul:focus {
|
||||||
|
|
||||||
.ruiListLayout {
|
.ruiListLayout {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ruiColumnLayout {
|
||||||
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ruiStackLayout {
|
.ruiStackLayout {
|
||||||
|
|
|
@ -197,7 +197,7 @@ func (button *checkboxData) cssStyle(self View, builder cssBuilder) {
|
||||||
builder.add("align-items", "stretch")
|
builder.add("align-items", "stretch")
|
||||||
builder.add("justify-items", "stretch")
|
builder.add("justify-items", "stretch")
|
||||||
|
|
||||||
button.viewsContainerData.cssStyle(self, builder)
|
button.viewData.cssStyle(self, builder)
|
||||||
}
|
}
|
||||||
|
|
||||||
func checkboxHtml(button View, buffer *strings.Builder, checked bool) (int, int) {
|
func checkboxHtml(button View, buffer *strings.Builder, checked bool) (int, int) {
|
||||||
|
|
|
@ -140,9 +140,9 @@ func newColumnLayout(session Session) View {
|
||||||
func (columnLayout *columnLayoutData) init(session Session) {
|
func (columnLayout *columnLayoutData) init(session Session) {
|
||||||
columnLayout.viewsContainerData.init(session)
|
columnLayout.viewsContainerData.init(session)
|
||||||
columnLayout.tag = "ColumnLayout"
|
columnLayout.tag = "ColumnLayout"
|
||||||
|
columnLayout.systemClass = "ruiColumnLayout"
|
||||||
columnLayout.normalize = normalizeColumnLayoutTag
|
columnLayout.normalize = normalizeColumnLayoutTag
|
||||||
columnLayout.changed = columnLayout.propertyChanged
|
columnLayout.changed = columnLayout.propertyChanged
|
||||||
//columnLayout.systemClass = "ruiColumnLayout"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func normalizeColumnLayoutTag(tag PropertyName) PropertyName {
|
func normalizeColumnLayoutTag(tag PropertyName) PropertyName {
|
||||||
|
|
|
@ -505,12 +505,6 @@ func gridCellSizes(properties Properties, tag PropertyName, session Session) []S
|
||||||
return []SizeUnit{}
|
return []SizeUnit{}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
func (gridLayout *gridLayoutData) cssStyle(self View, builder cssBuilder) {
|
|
||||||
gridLayout.viewsContainerData.cssStyle(self, builder)
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
// GetCellVerticalAlign returns the vertical align of a GridLayout cell content: TopAlign (0), BottomAlign (1), CenterAlign (2), StretchAlign (3)
|
// GetCellVerticalAlign returns the vertical align of a GridLayout cell content: TopAlign (0), BottomAlign (1), CenterAlign (2), StretchAlign (3)
|
||||||
// If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
|
// If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
|
||||||
func GetCellVerticalAlign(view View, subviewID ...string) int {
|
func GetCellVerticalAlign(view View, subviewID ...string) int {
|
||||||
|
|
|
@ -666,7 +666,7 @@ func (tabsLayout *tabsLayoutData) htmlProperties(self View, buffer *strings.Buil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (tabsLayout *tabsLayoutData) cssStyle(self View, builder cssBuilder) {
|
func (tabsLayout *tabsLayoutData) cssStyle(self View, builder cssBuilder) {
|
||||||
tabsLayout.viewsContainerData.cssStyle(self, builder)
|
tabsLayout.viewData.cssStyle(self, builder)
|
||||||
switch tabsLayout.tabsLocation() {
|
switch tabsLayout.tabsLocation() {
|
||||||
case TopTabs:
|
case TopTabs:
|
||||||
builder.add(`grid-template-rows`, `auto 1fr`)
|
builder.add(`grid-template-rows`, `auto 1fr`)
|
||||||
|
|
9
view.go
9
view.go
|
@ -805,15 +805,6 @@ func (view *viewData) addToCSSStyle(addCSS map[string]string) {
|
||||||
|
|
||||||
func (view *viewData) cssStyle(self View, builder cssBuilder) {
|
func (view *viewData) cssStyle(self View, builder cssBuilder) {
|
||||||
view.viewStyle.cssViewStyle(builder, view.session)
|
view.viewStyle.cssViewStyle(builder, view.session)
|
||||||
/*
|
|
||||||
switch GetVisibility(view) {
|
|
||||||
case Invisible:
|
|
||||||
builder.add(`visibility`, `hidden`)
|
|
||||||
|
|
||||||
case Gone:
|
|
||||||
builder.add(`display`, `none`)
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
if view.addCSS != nil {
|
if view.addCSS != nil {
|
||||||
for tag, value := range view.addCSS {
|
for tag, value := range view.addCSS {
|
||||||
builder.add(tag, value)
|
builder.add(tag, value)
|
||||||
|
|
|
@ -155,11 +155,6 @@ func (container *viewsContainerData) ViewIndex(view View) int {
|
||||||
return -1
|
return -1
|
||||||
}
|
}
|
||||||
|
|
||||||
func (container *viewsContainerData) cssStyle(self View, builder cssBuilder) {
|
|
||||||
container.viewData.cssStyle(self, builder)
|
|
||||||
builder.add(`overflow`, `auto`)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (container *viewsContainerData) htmlSubviews(self View, buffer *strings.Builder) {
|
func (container *viewsContainerData) htmlSubviews(self View, buffer *strings.Builder) {
|
||||||
if container.views != nil {
|
if container.views != nil {
|
||||||
for _, view := range container.views {
|
for _, view := range container.views {
|
||||||
|
|
Loading…
Reference in New Issue