Page 1 of 1

Center Dynamically generated Horizontal group buttons

Posted: Thu Oct 23, 2014 3:24 am
by Suda

Hi

I have a group buttons defined and they are populated dynamically by mapping a service response. The group buttons are in the footer and I want to align them center (horizontally). I couldn't define any css properties to the group buttons component from the properties. From another thread in your forum, I just tried to have the following code in the page load, but it didn't help me.

var MakeAction = function(){
var grid = Appery('buttons_grid');
grid.css({
top: '50%',
position: 'absolute',
width: '100%',
left: 0,
'margin-top': -( grid.outerHeight() / 2 )
});
alert("positionChanged");
};
$(window).bind('orientationchange', function(e) {
MakeAction();
});
MakeAction();


Center Dynamically generated Horizontal group buttons

Posted: Thu Oct 23, 2014 4:46 am
by Yurii Orishchuk

Hi Suda,

Please follow this thread: https://getsatisfaction.com/apperyio/...

Regards.


Center Dynamically generated Horizontal group buttons

Posted: Thu Oct 23, 2014 6:39 am
by Suda

Actually this is the post I checked before and the latest reply in that thread didn't help me. Will follow that thread to see if it helps me out. Thanks


Center Dynamically generated Horizontal group buttons

Posted: Thu Oct 23, 2014 10:50 pm
by Suda

I followed the post and that gave me the proper clue to fix this. Thanks Yurii, very happy to get a great support in short time.. Much appreciated :)