mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-14 15:15:56 +00:00
grabber: add resize constraints (100px)
This commit is contained in:
@@ -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 (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,8 +394,10 @@ function resize_headlines(delta_x, delta_y) {
|
||||
} else {
|
||||
|
||||
if (delta_y != undefined) {
|
||||
if (c_frame.offsetHeight + delta_y > 100 && h_frame.offsetHeight - delta_y > 100) {
|
||||
ver_offset = ver_offset + delta_y;
|
||||
}
|
||||
}
|
||||
|
||||
debug("resize_headlines: VER-mode");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user