mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-23 14:59:47 +03:00
[project @ 2006-03-26 23:06:18 by dsilvers]
Consider the margins on the <html> object when calculating where a point is. svn path=/import/netsurf/; revision=2189
This commit is contained in:
parent
aee810d4d3
commit
d8576715d9
@ -842,6 +842,11 @@ void browser_window_mouse_action_html(struct browser_window *bw,
|
||||
* box with scrollbars */
|
||||
|
||||
box = c->data.html.layout;
|
||||
|
||||
/* Consider the margins of the html page now */
|
||||
box_x = box->margin[LEFT];
|
||||
box_y = box->margin[TOP];
|
||||
|
||||
while ((next_box = box_at_point(box, x, y, &box_x, &box_y, &content)) !=
|
||||
NULL) {
|
||||
box = next_box;
|
||||
@ -2018,6 +2023,10 @@ struct box *browser_window_pick_text_box(struct browser_window *bw,
|
||||
int box_x = 0, box_y = 0;
|
||||
struct content *content;
|
||||
struct box *next_box;
|
||||
|
||||
/* Consider the margins of the html page now */
|
||||
box_x = box->margin[LEFT];
|
||||
box_y = box->margin[TOP];
|
||||
|
||||
while ((next_box = box_at_point(box, x, y, &box_x, &box_y, &content)) !=
|
||||
NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user