[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[platform-debug-dev] Memory View issue
|
Hi,
I'm
looking at a Memory View issue where the pane does not automatically scroll the
pane horizontally when the caret is moved outside the
viewport.
For
instance, if you have a Memory View that's sized to display three columns
of eight-character hex digits (e.g. "1AA0D083 8DD88910 458B5C03") and then
change the "column" setting to, say, 8 columns, the other 5 columns are outside
the viewport and not visible; you can use the scroll-bar to examine those unseen
columns. However, if you use your keyboard's arrow keys to move the caret
to the right (towards those currently-unseen columns) the viewport does not
scroll horizontally to accommodate this action. Vertical caret
movement using the arrow keys, on the other hand, is handled
correctly, i.e. the viewport is shifted appropriately so that the caret is
always in view.
The
ensureCaretWithinViewport() method
in org.eclipse.cdt.debug.ui.memory.traditional.AbstractPane deals
with the vertical viewport scrolling for up and down arrow keys moving the
caret; the horizontal case is not handled. I am looking at dealing with
that case but do not know how to determine if the caret has been
horizontally-positioned outside the viewport without doing some funky BigInteger
math (the vertical case simple determines this by a simple compare of the start
or end viewport address). Does anyone know anything about this view and
how to solve this problem?
Thanks, Andre St. Laurent