From: <md...@us...> - 2011-10-20 21:00:17
|
Revision: 4840 http://navit.svn.sourceforge.net/navit/?rev=4840&view=rev Author: mdankov Date: 2011-10-20 21:00:11 +0000 (Thu, 20 Oct 2011) Log Message: ----------- Fix:gui_internal Clip table containing long text lines by screen size. Fixes Prev/Next buttons placement in Route description and Former destinations lists. Modified Paths: -------------- trunk/navit/navit/gui/internal/gui_internal.c Modified: trunk/navit/navit/gui/internal/gui_internal.c =================================================================== --- trunk/navit/navit/gui/internal/gui_internal.c 2011-10-20 19:51:13 UTC (rev 4839) +++ trunk/navit/navit/gui/internal/gui_internal.c 2011-10-20 21:00:11 UTC (rev 4840) @@ -6450,9 +6450,12 @@ count++; } } - if (table_data->button_box) - gui_internal_widget_pack(this,table_data->button_box); + w->w = width; + if(w->w + w->c.x > this->root.w) + { + w->w = this->root.w - w->c.x; + } if(w->h + w->c.y > this->root.h ) @@ -6463,8 +6466,13 @@ */ w->h = this->root.h- w->c.y - height; } - w->w = width; + if (table_data->button_box) + { + gui_internal_widget_pack(this,table_data->button_box); + } + + /** * Deallocate column descriptions. */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |