[sushi/wip/cosimoc/no-clutter: 48/67] viewers: don't check for minimum size constraints
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sushi/wip/cosimoc/no-clutter: 48/67] viewers: don't check for minimum size constraints
- Date: Mon, 30 Apr 2018 15:17:41 +0000 (UTC)
commit a1be60ccef6f8bafd0c283f1c1ec8c093b7816bf
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Apr 3 12:07:20 2017 -0700
viewers: don't check for minimum size constraints
This is already done centrally by the window sizing methods.
src/js/ui/fallbackRenderer.js | 6 ------
src/js/viewers/audio.js | 5 -----
2 files changed, 0 insertions(+), 11 deletions(-)
---
diff --git a/src/js/ui/fallbackRenderer.js b/src/js/ui/fallbackRenderer.js
index 17ef208..075053b 100644
--- a/src/js/ui/fallbackRenderer.js
+++ b/src/js/ui/fallbackRenderer.js
@@ -32,7 +32,6 @@ const Gettext = imports.gettext.domain('sushi');
const _ = Gettext.gettext;
const Lang = imports.lang;
-const Constants = imports.util.constants;
const Utils = imports.ui.utils;
const FallbackRenderer = new Lang.Class({
@@ -163,11 +162,6 @@ const FallbackRenderer = new Lang.Class({
let width = this._box.get_preferred_width()[1];
let height = this._box.get_preferred_height()[1];
- if (width < Constants.VIEW_MIN &&
- height < Constants.VIEW_MIN) {
- width = Constants.VIEW_MIN;
- }
-
/* never make it shrink; this could happen when the
* spinner hides.
*/
diff --git a/src/js/viewers/audio.js b/src/js/viewers/audio.js
index 69d31cc..a814bc6 100644
--- a/src/js/viewers/audio.js
+++ b/src/js/viewers/audio.js
@@ -243,11 +243,6 @@ const AudioRenderer = new Lang.Class({
let width = this._box.get_preferred_width();
let height = this._box.get_preferred_height();
- if (width[1] < Constants.VIEW_MIN &&
- height[1] < Constants.VIEW_MIN) {
- width[1] = Constants.VIEW_MIN;
- }
-
/* return the natural */
return [ width[1], height[1] ];
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]