Giter Site home page Giter Site logo

Comments (12)

njdehoog avatar njdehoog commented on September 7, 2024

I'm running the demo with XCode 6 GM and it looks fine. Did you make any changes to the demo project?

from nhbalancedflowlayout.

loicgriffie avatar loicgriffie commented on September 7, 2024

No i haven't made any changes. I just downloaded the demo zip from github and run from xcode 6 GM. As you can see on the screenshot i have a layout that do not work properly. Don't you have the same layout as the one posted ?

from nhbalancedflowlayout.

njdehoog avatar njdehoog commented on September 7, 2024

screen shot 2014-09-15 at 10 05 52

from nhbalancedflowlayout.

loicgriffie avatar loicgriffie commented on September 7, 2024

Ok I see. can you try the same but with iOS 7.1 simulator instead of iOS 8 on iphone 6 ?

from nhbalancedflowlayout.

loicgriffie avatar loicgriffie commented on September 7, 2024

This is weird. I downloaded xcode 5 and tried the demo project on iOS 7.1 simulator and had the same issue. Then i clean the project and tried again. All is ok. I'll try the same with xcode 6 and let you know

from nhbalancedflowlayout.

loicgriffie avatar loicgriffie commented on September 7, 2024

I have installed back xCode 6 GM and the problem do not exists on iPhone 6 simulator with iOS 8. But even if i clean the problem occurs with iOS 7.1 iPhone 5S. Do you confirm the same ?

from nhbalancedflowlayout.

njdehoog avatar njdehoog commented on September 7, 2024

Yes I see the problem occur now. Doing a bit of digging, trying to figure out what is going on.

from nhbalancedflowlayout.

njdehoog avatar njdehoog commented on September 7, 2024

So far it looks like this is some kind of auto layout issue. The layout is correct, but the image views within the cells are not given the correct size

from nhbalancedflowlayout.

njdehoog avatar njdehoog commented on September 7, 2024

For some reason the contentView is not layed out correctly. I've found a workaround that seems to work for now. Just add these lines in ImageCell.m

- (void)layoutSubviews
{
    [super layoutSubviews];    
    self.contentView.frame = self.bounds;
}

from nhbalancedflowlayout.

loicgriffie avatar loicgriffie commented on September 7, 2024

I have also fixed it using the following code in the ImageCell.m

  • (void)setBounds:(CGRect)bounds
    {
    [super setBounds:bounds];

    self.contentView.frame = bounds;
    }

from nhbalancedflowlayout.

njdehoog avatar njdehoog commented on September 7, 2024

It's better not to override setBounds directly, but instead use layoutSubviews. Layoutsubviews will only be triggered when actually necessary.

from nhbalancedflowlayout.

loicgriffie avatar loicgriffie commented on September 7, 2024

Ok. thanks for your great lib and your support

from nhbalancedflowlayout.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.