From e86dbf9d9bd9fa6a80ed0272ad1e4b2a6255376c Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 20 May 2008 06:39:56 +0100 Subject: [PATCH] grabber: add resize constraints (100px) --- tt-rss.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tt-rss.js b/tt-rss.js index fe5f170c..9a23de61 100644 --- a/tt-rss.js +++ b/tt-rss.js @@ -375,8 +375,8 @@ function resize_headlines(delta_x, delta_y) { if (getInitParam("theme") == "3pane") { - if (c_frame.offsetLeft > feeds_frame.offsetWidth + feeds_frame.offsetLeft + 100) { - if (delta_x != undefined) { + if (delta_x != undefined) { + if (c_frame.offsetLeft - delta_x > feeds_frame.offsetWidth + feeds_frame.offsetLeft + 100 && c_frame.offsetWidth + delta_x > 100) { hor_offset = hor_offset + delta_x; } } @@ -394,7 +394,9 @@ function resize_headlines(delta_x, delta_y) { } else { if (delta_y != undefined) { - ver_offset = ver_offset + delta_y; + if (c_frame.offsetHeight + delta_y > 100 && h_frame.offsetHeight - delta_y > 100) { + ver_offset = ver_offset + delta_y; + } } debug("resize_headlines: VER-mode"); -- 2.39.5