Browse Source

Update UpcomingEventsDataSource.swift

pull/101/head
Abhishek 3 years ago
parent
commit
15d3ce0528
  1. 4
      Clocker/Panel/Upcoming Events/UpcomingEventsDataSource.swift

4
Clocker/Panel/Upcoming Events/UpcomingEventsDataSource.swift

@ -42,7 +42,7 @@ class UpcomingEventsDataSource: NSObject, NSCollectionViewDataSource, NSCollecti
} }
let currentEventInfo = upcomingEvents[indexPath.item] let currentEventInfo = upcomingEvents[indexPath.item]
let prefferedSize = avenirLightFont.size(currentEventInfo.event.title, 250, attributes: [NSAttributedString.Key.font: avenirLightFont]) let attributedString = NSAttributedString(string: currentEventInfo.event.title, attributes: [NSAttributedString.Key.font : avenirLightFont])
return NSSize(width: prefferedSize.width, height: 50) return NSSize(width: attributedString.size().width + 60, height: 50)
} }
} }

Loading…
Cancel
Save