mirror of https://github.com/anoshenko/rui.git
				
				
				
			Bug fixing
This commit is contained in:
		
							parent
							
								
									27ebaf1bfe
								
							
						
					
					
						commit
						d1d8c2af37
					
				
							
								
								
									
										15
									
								
								view.go
								
								
								
								
							
							
						
						
									
										15
									
								
								view.go
								
								
								
								
							|  | @ -790,14 +790,15 @@ func (view *viewData) addToCSSStyle(addCSS map[string]string) { | |||
| 
 | ||||
| func (view *viewData) cssStyle(self View, builder cssBuilder) { | ||||
| 	view.viewStyle.cssViewStyle(builder, view.session) | ||||
| 	switch GetVisibility(view) { | ||||
| 	case Invisible: | ||||
| 		builder.add(`visibility`, `hidden`) | ||||
| 
 | ||||
| 	case Gone: | ||||
| 		builder.add(`display`, `none`) | ||||
| 	} | ||||
| 	/* | ||||
| 		switch GetVisibility(view) { | ||||
| 		case Invisible: | ||||
| 			builder.add(`visibility`, `hidden`) | ||||
| 
 | ||||
| 		case Gone: | ||||
| 			builder.add(`display`, `none`) | ||||
| 		} | ||||
| 	*/ | ||||
| 	if view.addCSS != nil { | ||||
| 		for tag, value := range view.addCSS { | ||||
| 			builder.add(tag, value) | ||||
|  |  | |||
							
								
								
									
										10
									
								
								viewStyle.go
								
								
								
								
							
							
						
						
									
										10
									
								
								viewStyle.go
								
								
								
								
							|  | @ -174,6 +174,16 @@ func (style *viewStyle) backgroundCSS(session Session) string { | |||
| 
 | ||||
| func (style *viewStyle) cssViewStyle(builder cssBuilder, session Session) { | ||||
| 
 | ||||
| 	if visibility, ok := enumProperty(style, Visibility, session, Visible); ok { | ||||
| 		switch visibility { | ||||
| 		case Invisible: | ||||
| 			builder.add(`visibility`, `hidden`) | ||||
| 
 | ||||
| 		case Gone: | ||||
| 			builder.add(`display`, `none`) | ||||
| 		} | ||||
| 	} | ||||
| 
 | ||||
| 	if margin, ok := boundsProperty(style, Margin, session); ok { | ||||
| 		margin.cssValue(Margin, builder, session) | ||||
| 	} | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue