[gnome-documents] Use automatic page sizing mode



commit b88eb0d2f0507095137778cd66be726b96536518
Author: William Jon McCann <jmccann redhat com>
Date:   Tue Jan 8 12:32:08 2013 -0500

    Use automatic page sizing mode
    
    This "Automatic" zoom mode will use fit width when
    the window is smaller than 100% of the actual page size
    and then use the actual page size.

 src/embed.js |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/embed.js b/src/embed.js
index 25639e5..272600f 100644
--- a/src/embed.js
+++ b/src/embed.js
@@ -483,6 +483,7 @@ const Embed = new Lang.Class({
     },
 
     _onLoadFinished: function(manager, doc, docModel) {
+        docModel.set_sizing_mode(EvView.SizingMode.AUTOMATIC);
         this._toolbar.setModel(docModel);
         this._preview.setModel(docModel);
         this._preview.widget.grab_focus();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]