Rotation Issues #3

Closed
akaspick opened this Issue May 31, 2012 · 2 comments

Comments

Projects
None yet
2 participants
@akaspick

The Toast view doesn't appear to work well when the device orientation is changed. If the Toast view is centered for example and while it's being displayed, the device is rotated, the Toast view doesn't remain centered.

@scalessec

This comment has been minimized.

Show comment Hide comment
@scalessec

scalessec May 31, 2012

Owner

Views created with makeViewForMessage:title:image: and makeToastActivity: will have the autoresizing mask set with flexible left, right, top, & bottom to handle rotation correctly. Toast will respect whatever autoresizing mask is set on custom views displayed as Toast.

Owner

scalessec commented May 31, 2012

Views created with makeViewForMessage:title:image: and makeToastActivity: will have the autoresizing mask set with flexible left, right, top, & bottom to handle rotation correctly. Toast will respect whatever autoresizing mask is set on custom views displayed as Toast.

@akaspick

This comment has been minimized.

Show comment Hide comment
@akaspick

akaspick May 31, 2012

Works, thanks.

Works, thanks.

datalogics-kam added a commit to datalogics-kam/Toast that referenced this issue Aug 7, 2014

Merge commit 'bde0500' into DLReader2
This duplicates the old commit titled "Merge branch 'vendor-toast' into
open-books-with-joined-accounts"

Changes from the original merge attempt:

- Kept the vendor usage of #pragma mark
- Left in the testing of objc_arc before calling autorelease.
- Autoresizing mask left on wrapperView
- Shadow code for wrapper view retained; our tweaks turn it off anyway
  by setting kDisplayShadow to NO.
- Kept as close to vendor spacing usage as possible. (Use git diff -w to
  see differences in spacing).

These changes were kept to prevent future merge conflicts with the
upstream.

* commit 'bde0500':
  Adding shared scheme
  Issue #4: Adding ARC support for Toast and demo project
  Removing userdata from the project file
  Example explicitly sets autoresizing mask on custom Toast view
  Issue #3: setting autoresizing mask on toast views to fix rotation issues
  Editing readme again
  Editing readme
  Adding basic support for activity views
  Added a define to turn shadow on/off at compile time. Enabled by default.
  Added a shadow to the toast
  updating readme
  switching floats to CGFloats
  Formatting improvements
  Improved code formatting
  Updated the project settings to use LLVM

Conflicts:
	Toast/classes/toast/Toast+UIView.m

datalogics-kam added a commit to datalogics-kam/Toast that referenced this issue Aug 7, 2014

Merge commit 'bde0500' into from-current-dlreader
This duplicates the old commit titled "Merge branch 'vendor-toast' into
open-books-with-joined-accounts"

Changes from the original merge attempt:

- Kept the vendor usage of #pragma mark
- Left in the testing of objc_arc before calling autorelease.
- Autoresizing mask left on wrapperView
- Shadow code for wrapper view retained; our tweaks turn it off anyway
  by setting kDisplayShadow to NO.
- Kept as close to vendor spacing usage as possible. (Use git diff -w to
  see differences in spacing).

These changes were kept to prevent future merge conflicts with the
upstream.

* commit 'bde0500':
  Adding shared scheme
  Issue #4: Adding ARC support for Toast and demo project
  Removing userdata from the project file
  Example explicitly sets autoresizing mask on custom Toast view
  Issue #3: setting autoresizing mask on toast views to fix rotation issues
  Editing readme again
  Editing readme
  Adding basic support for activity views
  Added a define to turn shadow on/off at compile time. Enabled by default.
  Added a shadow to the toast
  updating readme
  switching floats to CGFloats
  Formatting improvements
  Improved code formatting
  Updated the project settings to use LLVM

Conflicts:
	Toast/classes/toast/Toast+UIView.m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment