[gnome-shell] modalDialog: Request HEIGHT_FOR_WIDTH
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] modalDialog: Request HEIGHT_FOR_WIDTH
- Date: Tue, 20 Aug 2013 06:41:00 +0000 (UTC)
commit 00ccbdaae9c74c32c28ec803579601ff1ac1914e
Author: Florian Müllner <fmuellner gnome org>
Date: Thu Jul 11 16:43:04 2013 +0200
modalDialog: Request HEIGHT_FOR_WIDTH
All our modal dialogs are given a fixed width and grow vertically
as necessary. Set the request mode accordingly, so that wrapped
labels are considered correctly during size request, and not only
at allocation time (where they'll either take away from the padding
or even cause the dialog to overflow).
https://bugzilla.gnome.org/show_bug.cgi?id=704015
js/ui/modalDialog.js | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/modalDialog.js b/js/ui/modalDialog.js
index 40a6968..029cc41 100644
--- a/js/ui/modalDialog.js
+++ b/js/ui/modalDialog.js
@@ -79,6 +79,11 @@ const ModalDialog = new Lang.Class({
this.dialogLayout = new St.BoxLayout({ style_class: 'modal-dialog',
vertical: true });
+ // modal dialogs are fixed width and grow vertically; set the request
+ // mode accordingly so wrapped labels are handled correctly during
+ // size requests.
+ this.dialogLayout.request_mode = Clutter.RequestMode.HEIGHT_FOR_WIDTH;
+
if (params.styleClass != null)
this.dialogLayout.add_style_class_name(params.styleClass);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]