Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Complementary fix for bug [3592454fff] - Don't identify the sash associated to the last visible pane |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
4bbc5717cf960e409c498068bbdb7ee1 |
User & Date: | fvogel 2015-06-01 19:40:27 |
Context
2015-06-01
| ||
19:46 | merge mark check-in: e155956c user: fvogel tags: trunk | |
19:40 | Complementary fix for bug [3592454fff] - Don't identify the sash associated to the last visible pane check-in: 4bbc5717 user: fvogel tags: trunk | |
19:32 | Complementary fix for bug [3592454fff] - Don't identify the sash associated to the last visible pane check-in: 6dd9fb16 user: fvogel tags: core-8-5-branch | |
19:10 | Test panedwindow-25.2 uses tcltest 2 format check-in: c47c754e user: fvogel tags: trunk | |
Changes
Changes to generic/tkPanedWindow.c.
︙ | ︙ | |||
3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 | PanedWindowIdentifyCoords( PanedWindow *pwPtr, /* Information about the widget. */ Tcl_Interp *interp, /* Interpreter in which to store result. */ int x, int y) /* Coordinates of the point to identify. */ { int i, sashHeight, sashWidth, thisx, thisy; int found, isHandle, lpad, rpad, tpad, bpad; if (pwPtr->orient == ORIENT_HORIZONTAL) { if (Tk_IsMapped(pwPtr->tkwin)) { sashHeight = Tk_Height(pwPtr->tkwin); } else { sashHeight = Tk_ReqHeight(pwPtr->tkwin); } | > | 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 | PanedWindowIdentifyCoords( PanedWindow *pwPtr, /* Information about the widget. */ Tcl_Interp *interp, /* Interpreter in which to store result. */ int x, int y) /* Coordinates of the point to identify. */ { int i, sashHeight, sashWidth, thisx, thisy; int found, isHandle, lpad, rpad, tpad, bpad; int first, last; if (pwPtr->orient == ORIENT_HORIZONTAL) { if (Tk_IsMapped(pwPtr->tkwin)) { sashHeight = Tk_Height(pwPtr->tkwin); } else { sashHeight = Tk_ReqHeight(pwPtr->tkwin); } |
︙ | ︙ | |||
3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 | } else { sashWidth = Tk_ReqWidth(pwPtr->tkwin); } sashWidth -= 2 * Tk_InternalBorderWidth(pwPtr->tkwin); lpad = rpad = 0; } isHandle = 0; found = -1; for (i = 0; i < pwPtr->numSlaves - 1; i++) { | > | | 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 | } else { sashWidth = Tk_ReqWidth(pwPtr->tkwin); } sashWidth -= 2 * Tk_InternalBorderWidth(pwPtr->tkwin); lpad = rpad = 0; } GetFirstLastVisiblePane(pwPtr, &first, &last); isHandle = 0; found = -1; for (i = 0; i < pwPtr->numSlaves - 1; i++) { if (pwPtr->slaves[i]->hide || i == last) { continue; } thisx = pwPtr->slaves[i]->sashx; thisy = pwPtr->slaves[i]->sashy; if (((thisx - lpad) <= x && x <= (thisx + rpad + sashWidth)) && ((thisy - tpad) <= y && y <= (thisy + bpad + sashHeight))) { |
︙ | ︙ |