Short the mesh view to fit into screen
This commit is contained in:
		
							parent
							
								
									d577566151
								
							
						
					
					
						commit
						d6bac927e1
					
				
							
								
								
									
										1
									
								
								NEWS
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								NEWS
									
									
									
									
									
								
							| @ -1,3 +1,4 @@ | |||||||
|  | * #4667 Do not display XO outside the mesh view. (marco) | ||||||
| * #4687 Use the right free function, fix a crash. (sjoerd) | * #4687 Use the right free function, fix a crash. (sjoerd) | ||||||
| * #4724 Display meshbox invite palette menu with colored | * #4724 Display meshbox invite palette menu with colored | ||||||
|   activity icon (erikos) |   activity icon (erikos) | ||||||
|  | |||||||
| @ -22,6 +22,8 @@ import hippo | |||||||
| import gobject | import gobject | ||||||
| import gtk | import gtk | ||||||
| 
 | 
 | ||||||
|  | from sugar.graphics import style | ||||||
|  | 
 | ||||||
| _PLACE_TRIALS = 20 | _PLACE_TRIALS = 20 | ||||||
| _MAX_WEIGHT = 255 | _MAX_WEIGHT = 255 | ||||||
| _CELL_SIZE = 4 | _CELL_SIZE = 4 | ||||||
| @ -208,7 +210,7 @@ class SpreadLayout(gobject.GObject, hippo.CanvasLayout): | |||||||
|         self._box = box |         self._box = box | ||||||
| 
 | 
 | ||||||
|     def do_get_height_request(self, for_width): |     def do_get_height_request(self, for_width): | ||||||
|         return 0, gtk.gdk.screen_height() |         return 0, gtk.gdk.screen_height() - style.GRID_CELL_SIZE | ||||||
| 
 | 
 | ||||||
|     def do_get_width_request(self): |     def do_get_width_request(self): | ||||||
|         return 0, gtk.gdk.screen_width() |         return 0, gtk.gdk.screen_width() | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Marco Pesenti Gritti
						Marco Pesenti Gritti