onekiloparsec / KPCTabsControl

A macOS control for tabs with enhanced capabilities, and styles: Safari, Chrome and custom ones.
MIT License
170 stars 26 forks source link

Cannot resize window when KPCTabsControl takes whole width #3

Closed DivineDominion closed 8 years ago

DivineDominion commented 8 years ago

This one is weird and I don't remember this was a problem a few weeks ago: I have a tab bar at the top of my window + constraints so it has full width. Whatever size the window has in Interface Builder is the final width when I start the program. Height resizes just fine. I don't get any horizontal resizing handles, though. Can't make the window wider or narrower.

screen shot 2016-05-27 at 16 05 45

It happens even when I ...

(No matter the content hugging or compression resistance.)

It works when I ...

onekiloparsec commented 8 years ago

Hi! Thanks for the issue report. I'll have a look asap, but I am currently traveling. Would it be possible for you to send me a test project with the right problematic setup?

onekiloparsec commented 8 years ago

Hi. I just published v1.6.1 with a small fix. I have taken the project demo, and turned Autolayout ON in the xib. And indeed, it appeared that you couldn't resize the window. I am still struggling a bit at understanding the AutoLayout stuff. I had to revert a boolean in the code (that I already toggled in the past...). But with the new value, the tabs control works whatever the AutoLayout switch in the xib: on and off work. Let me know if it is also ok for you.

DivineDominion commented 8 years ago

Strange: turning AL on alone didn't break the sample app for me. Will integrate the new version today and see in the shipping app.

On 28 May 2016, at 15:41, Cédric Foellmi notifications@github.com wrote:

Hi. I just published v1.6.1 with a small fix. I have taken the project demo, and turned Autolayout ON in the xib. And indeed, it appeared that you couldn't resize the window. I am still struggling a bit at understanding the AutoLayout stuff. I had to revert a boolean in the code (that I already toggled in the past...). But with the new value, the tabs control works whatever the AutoLayout switch in the xib: on and off work. Let me know if it is also ok for you.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

DivineDominion commented 8 years ago

That did it, thanks! I wonder what else I messed up when I removed that toggle and it still didn't work 🤔

onekiloparsec commented 8 years ago

👍🏻