Auk icon indicating copy to clipboard operation
Auk copied to clipboard

Shifting pageControl

Open agfa555 opened this issue 8 years ago • 6 comments

Hi,

Me again. I was also trying to use the innerMargin property to move the pageControl in the x-axis but it doesn't seem to work. The CGSizeMake() values that I use work for the y-axis but not the x-axis. Is that possible?

Thank you!

agfa555 avatar Mar 16 '16 10:03 agfa555

Hi,

I think you are referring to settings.pageControl.innerPadding property. This property sets the padding for the page control that is the distance between the dots and the page control background. It does not change the position of the page control in the scroll view.

Here is how it is used:

scrollView.auk.settings.pageControl.innerPadding = CGSize(width: 5, height: 20)
page_control_inner_padding

Page control is positioned in the scroll view the following way:

a) It is centred horizontally. b) It is aligned to the bottom edge of the scroll view.

At the moment the only available option for changing the position of page control is to change the margin between the bottom edge of the scroll view and the bottom of the page control. For example:

scrollView.auk.settings.pageControl.marginToScrollViewBottom = 8

I hope my explanation made it less confusing.

evgenyneu avatar Mar 17 '16 01:03 evgenyneu

Ok, thanks for the explanation! I was just hoping to move them to the left corner.

agfa555 avatar Mar 17 '16 02:03 agfa555

@evgenyneu and @agfa555 how we can move it to left or right corner.

RanjitKadam avatar Jun 13 '16 09:06 RanjitKadam

Hi @RanjitKadam, there is no way to move it to left or right in the current version of the library. You can, of course, fork the code and position the page control as you like with an auto layout constraint.

evgenyneu avatar Jun 13 '16 10:06 evgenyneu

Can we shift page control to left or right?

NirajCapermint avatar Sep 12 '19 06:09 NirajCapermint

@NirajCapermint no, unfortunately not, at the moment.

evgenyneu avatar Sep 12 '19 07:09 evgenyneu