FSPagerView icon indicating copy to clipboard operation
FSPagerView copied to clipboard

FSPageControl is not being centered correctly when contentHorizontalAlignment is set as .center

Open scm573 opened this issue 6 years ago • 2 comments

Hi,

As I wrote in the title, after set the contentHorizontalAlignment as .center, if you look carefully at the spaces at the left & right sides, or measure the sizes using a ruler app, you'll find the lengths are different. You can easily try at the sample app.

My current workaround is to add an additional padding to achieve a balance:

self.pageControl.contentInsets = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 5)

Would be better if the library could do that by itself.

scm573 avatar Mar 14 '18 02:03 scm573

Still an issue to date.

helimarrabago avatar Sep 03 '19 08:09 helimarrabago

it is work for me

MRZHL avatar Jul 03 '22 07:07 MRZHL