Suda
Posts: 0
Joined: Sat Oct 11, 2014 9:11 pm

Center Dynamically generated Horizontal group buttons

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();

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Center Dynamically generated Horizontal group buttons

Hi Suda,

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

Regards.

Suda
Posts: 0
Joined: Sat Oct 11, 2014 9:11 pm

Center Dynamically generated Horizontal group buttons

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

Suda
Posts: 0
Joined: Sat Oct 11, 2014 9:11 pm

Center Dynamically generated Horizontal group buttons

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 :)

Return to “Issues”