[Dextrose] [PATCH 53/54] Fix for bug uy#747.
Anish Mangal
anish at sugarlabs.org
Tue Nov 8 13:09:46 EST 2011
Testing on a xo-1 there is no difference in viewing journal entries
expanded view, since there already is sufficient space for them.
Testing on jhbuild with smaller resolution, a vertical scrollbar is
visible allowing to view the full journal entry (and not cropping it)
On Tue 08 Nov 2011 11:20:35 PM IST, Anish Mangal wrote:
> From: Ajay Garg <ajay at sugarlabs.org>
>
> Added a scrollbar for details-view of journal.
>
> Signed-off-by: Ajay Garg <ajay at sugarlabs.org>
> Signed-off-by: Anish Mangal <anish at sugarlabs.org>
> ---
> src/jarabe/journal/expandedentry.py | 7 +++++--
> 1 files changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/src/jarabe/journal/expandedentry.py b/src/jarabe/journal/expandedentry.py
> index 4e99dc2..760144d 100644
> --- a/src/jarabe/journal/expandedentry.py
> +++ b/src/jarabe/journal/expandedentry.py
> @@ -89,9 +89,12 @@ class ExpandedEntry(hippo.CanvasBox):
> spacing=style.DEFAULT_SPACING * 3,
> padding_left=style.GRID_CELL_SIZE,
> padding_right=style.GRID_CELL_SIZE,
> - padding_top=style.DEFAULT_SPACING * 3)
> + padding_top=style.DEFAULT_SPACING * 3,
> + background_color=style.COLOR_WHITE.get_int())
>
> - self.append(body, hippo.PACK_EXPAND)
> + scrolled_window = hippo.CanvasScrollbars()
> + scrolled_window.set_root(body)
> + self.append(scrolled_window, hippo.PACK_EXPAND)
>
> first_column = hippo.CanvasBox(orientation=hippo.ORIENTATION_VERTICAL,
> spacing=style.DEFAULT_SPACING)
--
Anish Mangal
Sugar Labs
More information about the Dextrose
mailing list