Skip to content

Commit

Permalink
update margin calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
SteinRobert committed Jan 11, 2017
1 parent 7dad84a commit df4bae6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions layouter/cms_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ class ContainerCMSPlugin(CMSPluginBase):
)

def render(self, context, instance, placeholder):
if instance.margin:
context['width'] = 12 - 2 * instance.margin
context['width'] = 12 - 2 * instance.margin
return super(ContainerCMSPlugin, self).render(context, instance, placeholder)

plugin_pool.register_plugin(ContainerCMSPlugin)

0 comments on commit df4bae6

Please sign in to comment.