-
Notifications
You must be signed in to change notification settings - Fork 695
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ScrollView may not be honoring clip region; CustomButton shows outside #2331
Comments
Can you provide the CustomButton code, please. I seems that you are redraw it in a manner that it don't be respecting the |
|
Add how I create window with ScrollView
|
I renamed this issue to hopefully make it more clear. Please let me know if I didn't get it right. |
I see in your code that the These two ways doesn't force the terminal size to what you want because the Application.Top.Add (new ScrollViewTestWindow ());
Application.Run (); But the bug still exists and I'll investigate it, but was only to clarify what is what you want. But perhaps was a workaround to hidden the bug, was isn't? :-) Do you allow I add a scenario with the code you provide to the |
…Button shows outside
@BDisp do you think using |
Fixes #2331. ScrollView may not be honoring clip region; CustomButton shows outside
Thanks @eonyanov. This is already fixed but to test you have to use the current |
Yes @tig, it does what it should. So to clarity these bellow samples are similar: // If the driver is null the InternalInit will be called
Application.Run<ScrollViewTestWindow> (); or // The Init must be explicit called.
Application.Init ();
Application.Run (new ScrollViewTestWindow ()); But those two ways will start the app with the Application.Init ();
Application.Top.Add (new ScrollViewTestWindow ());
Application.Run (); |
…Button shows outside
…#2332) * Proves that the issue #2331 don't have reason to happen. * fixes #2336 * Fixes #2331. ScrollView may not be honoring clip region; CustomButton shows outside * More appropriate solution for the issue #2331. * Start refactoring LineCanvas for mixing line style support (e.g. double into single) * Add remaining resolvers * Implement corner border style mixing in LineCanvas * Refactor and simplify resolvers * Move tests to Core folder and namespace to Terminal.Gui.CoreTests * Fixes #2333. TextField is selecting badly a word on double click. * Add unit test deleting a word with accented char. * Fixes 2331. ScrollView may not be honoring clip region. * Add a custom button scenario. * Fixes #2350. Clipping broke (see Clipping scenario). * Is preferable use NeedDisplay instead of Bounds. --------- Co-authored-by: Tig Kindel <tig@users.noreply.github.com> Co-authored-by: tznind <tznind@dundee.ac.uk>
… not reproduce (gui-cs#2332)" This reverts commit c85ff95.
#2372) * Illustrates #2331 (Scrollview not respecting clip) does not reproduce (#2332) * Proves that the issue #2331 don't have reason to happen. * fixes #2336 * Fixes #2331. ScrollView may not be honoring clip region; CustomButton shows outside * More appropriate solution for the issue #2331. * Start refactoring LineCanvas for mixing line style support (e.g. double into single) * Add remaining resolvers * Implement corner border style mixing in LineCanvas * Refactor and simplify resolvers * Move tests to Core folder and namespace to Terminal.Gui.CoreTests * Fixes #2333. TextField is selecting badly a word on double click. * Add unit test deleting a word with accented char. * Fixes 2331. ScrollView may not be honoring clip region. * Add a custom button scenario. * Fixes #2350. Clipping broke (see Clipping scenario). * Is preferable use NeedDisplay instead of Bounds. --------- Co-authored-by: Tig Kindel <tig@users.noreply.github.com> Co-authored-by: tznind <tznind@dundee.ac.uk> * Fixes ASCIICustomButton scenario. * Adds Snake Scenario (#2353) * Add empty snake scenario * Move snake head around * Snake now has a tail * Rest of logic implementation * Ctrl K D layout fixes * Game gets faster as you collect more apples * Adjust speed increase rate down * Use white on black for snake and border and red for apple * Fix ScenarioTests not Disposing Scenario * Add disposes and fix to use LineCanvas.GenerateImage * Fix stack overflow, doh! --------- Co-authored-by: Tig <tig@users.noreply.github.com> * Fixes 2368. Nested views with height of 1 not rendering correctly. --------- Co-authored-by: Tig Kindel <tig@users.noreply.github.com> Co-authored-by: tznind <tznind@dundee.ac.uk> Co-authored-by: Thomas Nind <31306100+tznind@users.noreply.github.com>
… not reproduce (gui-cs#2332)" This reverts commit c85ff95.
…) does not reproduce (gui-cs#2332)" committed twice on 6bb90ed and 28d7be7
…) does not reproduce (gui-cs#2332)" committed twice on 6bb90ed and 28d7be7
I created CustomButton class with FrameView, one Label for fill and one Label for text inside.
Then I put some buttons inside the scrollview.
Buttons that are outside of the scrollview display a label.
The text was updated successfully, but these errors were encountered: