Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
4312 Lượt xem

Hi everyone,


I'm trying to build a website using Odoo, but after working for some time on my homepage I noticed that a horizontal scrollbar was added and now I don't know how to eliminate it. The horizontal scrollbar is present in both mobile and desktop views. How can I solve it?


Thanks 

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

Thanks! I solved it using the wysiwg editor. I didn't touch the code.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

There are a few different ways to eliminate the horizontal scrollbar in Odoo:


Make sure that the width of all elements within the view is not wider than the width of the view. This will ensure that there is no need for a horizontal scrollbar.


If you are using a form view, you can set the layout attribute to 'default' to disable the horizontal scrollbar. For example:


Copy code

   

If you are using a tree view, you can set the overflow attribute to 'hidden' to disable the horizontal scrollbar. For example:

Copy code

   

If you are using a kanban view, you can set the scroll attribute to 'false' to disable the horizontal scrollbar. For example:

Copy code

   

I hope this helps! Let me know if you have any questions

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 7 25
703
2
thg 6 25
2304
3
thg 4 25
2523
1
thg 4 25
1877
1
thg 12 24
2288