Commit 959703aa authored by Gene Z. Ragan's avatar Gene Z. Ragan Committed by Gene Ragan

Fixed a minor annoying layout bug on the desktop. When icons were placed

2001-03-14  Gene Z. Ragan  <gzr@eazel.com>

	* libnautilus-extensions/nautilus-icon-container.c:
	(icon_set_position):
	Fixed a minor annoying layout bug on the desktop. When icons were placed
	near the bottom of the desktop, they would sometimes jump
	partially offscreen.
parent 0805af3e
2001-03-14 Gene Z. Ragan <gzr@eazel.com>
* libnautilus-extensions/nautilus-icon-container.c:
(icon_set_position):
Fixed a minor annoying layout bug on the desktop. When icons were placed
near the bottom of the desktop, they would sometimes jump
partially offscreen.
2001-03-14 John Sullivan <sullivan@eazel.com>
Fixed bug 7696 ("Find" does nothing if location bar hidden)
......
......@@ -234,13 +234,14 @@ icon_set_position (NautilusIcon *icon,
width = x2 - x1;
height = y2 - y1;
if (x > right) {
if (x > right - DESKTOP_ICON_SAFETY_PAD) {
x = right - DESKTOP_ICON_SAFETY_PAD;
}
if (x < left) {
x = left;
}
if (y > bottom - height) {
if (y > bottom - DESKTOP_ICON_SAFETY_PAD) {
y = bottom - DESKTOP_ICON_SAFETY_PAD;
}
if (y < top) {
......
......@@ -234,13 +234,14 @@ icon_set_position (NautilusIcon *icon,
width = x2 - x1;
height = y2 - y1;
if (x > right) {
if (x > right - DESKTOP_ICON_SAFETY_PAD) {
x = right - DESKTOP_ICON_SAFETY_PAD;
}
if (x < left) {
x = left;
}
if (y > bottom - height) {
if (y > bottom - DESKTOP_ICON_SAFETY_PAD) {
y = bottom - DESKTOP_ICON_SAFETY_PAD;
}
if (y < top) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment