Switch to dynamic layout for Dash
Instead of laying out the dash contents "manually" and having the content items explicitly passed their height, just give them a set width.
This commit is contained in:

committed by
Owen W. Taylor

parent
e9966b4aff
commit
66ea19fbfb
@ -66,17 +66,16 @@ DocDisplayItem.prototype = {
|
||||
* The documents are sorted by how recently they were last visited.
|
||||
*
|
||||
* width - width available for the display
|
||||
* height - height available for the display
|
||||
*/
|
||||
function DocDisplay(width, height, numberOfColumns, columnGap) {
|
||||
this._init(width, height, numberOfColumns, columnGap);
|
||||
}
|
||||
function DocDisplay(width, numberOfColumns, columnGap) {
|
||||
this._init(width, numberOfColumns, columnGap);
|
||||
}
|
||||
|
||||
DocDisplay.prototype = {
|
||||
__proto__: GenericDisplay.GenericDisplay.prototype,
|
||||
|
||||
_init : function(width, height, numberOfColumns, columnGap) {
|
||||
GenericDisplay.GenericDisplay.prototype._init.call(this, width, height, numberOfColumns, columnGap);
|
||||
_init : function(width, numberOfColumns, columnGap) {
|
||||
GenericDisplay.GenericDisplay.prototype._init.call(this, width, numberOfColumns, columnGap);
|
||||
let me = this;
|
||||
this._recentManager = Gtk.RecentManager.get_default();
|
||||
this._docsStale = true;
|
||||
|
Reference in New Issue
Block a user