Skip to content

fix: make FAB icon size larger#2

Merged
kevboh merged 1 commit into
audubongit:feat-add-modal-tabsfrom
postlight:feat-add-action-size
Oct 16, 2017
Merged

fix: make FAB icon size larger#2
kevboh merged 1 commit into
audubongit:feat-add-modal-tabsfrom
postlight:feat-add-action-size

Conversation

@javamonn
Copy link
Copy Markdown

@javamonn javamonn commented Oct 16, 2017

Setting ScaleType.CENTER allows the FAB icon image to grow outside of its set bounds. I think this is because the FAB sets padding / margins on the ImageView that we actually want to ignore, so disabling scaling forces a larger size.

This resolves the issue with the FAB icon image being too small. We may want to wrap this scale toggle behind a FAB param if we need the standard 24dp sized FAB icons anywhere else in the application.

@javamonn javamonn changed the title fix: enable fab icon scaling fix: make FAB icon size larger Oct 16, 2017
@kevboh kevboh merged commit 31cb6e1 into audubongit:feat-add-modal-tabs Oct 16, 2017
@kevboh kevboh deleted the feat-add-action-size branch October 16, 2017 18:09
kevboh added a commit that referenced this pull request May 24, 2018
* feat: support a “modal” prop for tabbed ios apps

* fix: apply temp fix for react-native-navigation#1502 (#1)

* fix: enable fab icon scaling (#2)

* v1.1.340 [ci skip]

* Update FloatingActionButtonCoordinator.java

* Update top-level-api.md

* Update package.json
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