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

Wrong layout in landscape #92

Open
Najdan opened this issue May 15, 2018 · 3 comments
Open

Wrong layout in landscape #92

Najdan opened this issue May 15, 2018 · 3 comments

Comments

@Najdan
Copy link

Najdan commented May 15, 2018

Report a bug

What did you do?

Opened example project from repository, added Landscape Left and Landscape Right as possible Device Orientation. Run the app and rotated screen, layout and indicators are wrong.

2018-05-15 15 40 51

What did you expect to happen?

Indicator should have same frame as segment view and should be aligned properly.

What happened instead?

Indicator had wrong position comparing to segment frame.

Your Environment

  • Version of the component: 3.0
  • Swift version: 4.0
  • iOS version: 11.2
  • Device: iOS Simulator, iPhone 6S
  • Xcode version: 9.2
  • If you use Cocoapods:

Stack

   CocoaPods : 1.5.2
        Ruby : ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin16]
    RubyGems : 2.7.6
        Host : Mac OS X 10.12.6 (16G1114)
       Xcode : 9.2 (9C40b)
         Git : git version 2.14.3 (Apple Git-98)
Ruby lib dir : /usr/local/Cellar/ruby/2.5.1/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ b0b53b9ae895381b3ac98aae98e09c15b6f4bbcc

Installation Source

Executable Path: /usr/local/bin/pod

Plugins

cocoapods-deintegrate : 1.0.2
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.0
cocoapods-stats       : 1.0.0
cocoapods-trunk       : 1.3.0
cocoapods-try         : 1.1.0

Podfile

platform :ios, '8.0'
use_frameworks!

target 'Segmentio_Example' do
  pod 'Segmentio', :path => '../'
end

Project that demonstrates the bug

Example repository

@rnkyr
Copy link
Contributor

rnkyr commented May 18, 2018

Hi, @Najdan!
Thanks for reporting. Segmentio is not supposed to support different orientations.
I'm sure it's not complicated to add such option, so leave your issue as an enhancement for future improvements.

@rameshrathi
Copy link

Hi
This issue is there in case of dynamic segment position, and orientation is Normal(Portrait).

@wolfej1994
Copy link

I'm also experiencing this issue.

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

No branches or pull requests

4 participants