Scrolling to selection when selecting path to the receiver class in the meta browser (Fix for the meta browser in the inspector) #597
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes pharo-project/pharo#14863
In
StMetaBrowser
, at the initialization, it selects the path to the class of the selected objectHowever, if the meta browser is too small, it would result in not showing the receiver class (and not even showing a scrollbar to get to it). This is the case in the debugger inspector which is smaller than the normal inspector (but I guess it would appear in the normal inspector if you have class hierearchy with big depths):
I fixed it so that it automatically scrolls to the receiver class because it is (generally) the class of interest:
And now the scrollbar appears correctly and everything is fine: even in the debugger inspector