Skip to content
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

Gtk DisplayActionSheet fix #1

Merged
merged 3 commits into from
Dec 22, 2017
Merged

Conversation

RogerHardiman
Copy link

@RogerHardiman RogerHardiman commented Oct 21, 2017

Description of Change

CHANGE 1
DisplayActionSheet on GTK had a bug if the number of buttons to show was large. The ActionSheet would be taller than the screen and some buttons and the cancel button were not visible.
This fix introduces a change to DisplayActionSheet on GTK so that the buttons are in a scroll window.
The same type of fix was needed in Xamarin Forms for MacOS recently.

CHANGE 2
The slider in GTK uses the native GTK widget that shows the numerical value of the slider.
It looks really nice but the other Xamarin Forms platforms do not show the value in the slider. They require the developer to create a User Interface showing the value.
So there is a patch to hide the numerical value on GTK.

Bugs Fixed

CHANGE 1.
Bugzilla 58779 reported the bug for ActionSheets with a large number of buttons on MacOS. This ports the same fix to GTK

CHANGE 2
No bugzilla report generated

API Changes

None

Behavioral Changes

ActionSheets with a large number of buttons e.g. over 20 buttons will now have a scroll window with scroll bars instead of getting a truncated list.

The Slider no longer shows the numerical value and is consistent with sliders on other platforms.

PR Checklist

  • Has tests (if omitted, state reason in description)
  • Rebased on top of master at time of PR
    is rebased on current upstream GTK fork
  • Changes adhere to coding standard
  • Consolidate commits as makes sense

Ports Bugzilla 58779 fix from MacOS to GTK
The numerical value looks nice, but XF on Droid and XF on iOS
do not have this so for consistency it should be removed.
@RogerHardiman
Copy link
Author

I've added 2nd commit for the numerical value on the slider (which should be hidden to be consistent with other Xam Forms targets)

@jsuarezruiz jsuarezruiz self-assigned this Oct 22, 2017
@jsuarezruiz
Copy link

Thanks for your support and help!. Will review the PR.

@RogerHardiman
Copy link
Author

Hi. Just a reminder on this PR.
Would you be able to add the changes (but ignoring the part that hides the number shown as you scroll)
Thanks
Roger

@jsuarezruiz jsuarezruiz merged commit 20a9cc1 into PlainConcepts:gtk Dec 22, 2017
@jsuarezruiz
Copy link

Merged. Thank you very much for your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants