Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

website_less no horizontal element placement

By
Marc Antwertinger
on 8/6/15, 5:02 AM 508 views

If you install website_less for theme_clean or other themes, no horizontal element placement / sorting is possible. The css class oe_vertical is not added to the columns.

The Problem is in the javascript file "website.snippets.editor.js" in Line 532

var float = window.getComputedStyle(this).float;

float is undefined, but it should be left or right.

if(child_selector){

self.$wrapwrap.find(child_selector).each(function (){

var $zone = $(this);

var vertical;

var float = window.getComputedStyle(this).float;

if (float === "left" || float === "right") {

vertical = $zone.parent().outerHeight()+'px';

}

var $drop = zone_template.clone();

if (vertical) {

$drop.addClass("oe_vertical").css('height', vertical);

}

$zone.find('> *:not(.oe_drop_zone):visible').after($drop);

$zone.prepend($drop.clone());

});

}

Can you please explain, what that means practically? As a 50 Themes Pack Supporter heavily using different themes for different customers, I'm very interested in it.

Ermin Trevisan
on 8/8/15, 9:12 AM
0
Marc Antwertinger
On 8/8/15, 9:44 AM

if you compare the odoo default theme behavior

https://www.dropbox.com/s/yloyf41gcizsay9/default-theme.jpg?dl=0

for example with the clean_theme behavior

https://www.dropbox.com/s/66kr1gus226tkjf/clean-theme.jpg?dl=0

you see that horizontal ordering isn´t possible.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 8/6/15, 5:02 AM
Seen: 508 times
Last updated: 8/8/15, 9:44 AM