Moodle Community Sites

too silly to be true

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Component/s: moodle.org
  • Labels:
    None

Description

copy and paste this address in your browser address bar.
http://moodle.org/mod/data/view.php?d=13&mode=single&page=198
You get the "Small Hack: Hyper Forum". Fine.
Now push the "Next" link (on the right at the end of the numbers).

What I get is a page without the list of numbers to browse the database. (look at the attachment)
By typing: http://moodle.org/mod/data/view.php?d=13&mode=single&page=199
the output, of course, is the same!!!!

Activity

Hide
Helen Foster added a comment -

Daniele, thanks for your report. However, I can't reproduce it - when I follow the next link I get http://moodle.org/mod/data/view.php?d=13&mode=single&page=199 as expected.

Hmm, I wonder what's going on.

Show
Helen Foster added a comment - Daniele, thanks for your report. However, I can't reproduce it - when I follow the next link I get http://moodle.org/mod/data/view.php?d=13&mode=single&page=199 as expected. Hmm, I wonder what's going on.
Hide
Jon Witts added a comment -

The links are there; it is the comment from Fred Lunau - Thursday, 26 June 2008, 09:17 PM, that is streching the page off to the right of the screen...

Show
Jon Witts added a comment - The links are there; it is the comment from Fred Lunau - Thursday, 26 June 2008, 09:17 PM, that is streching the page off to the right of the screen...
Hide
Helen Foster added a comment -

Thanks Jon, I've just deleted Fred's extra-long comment. Does that fix things? (I still can't reproduce it!)

Show
Helen Foster added a comment - Thanks Jon, I've just deleted Fred's extra-long comment. Does that fix things? (I still can't reproduce it!)
Hide
Daniele Cordella added a comment -

Thanks Jon and Helen.
You found and fixed the problem that, maybe, was well visible in firefox only.
In any case... now the page displays fine.

Next issue is... why do comments like the one from Fred Lunau can mess the page? Is this a css problem? Do we have to include in this discussion Patrick Malley and to rewrite the comment from Fred Lunau?

Show
Daniele Cordella added a comment - Thanks Jon and Helen. You found and fixed the problem that, maybe, was well visible in firefox only. In any case... now the page displays fine. Next issue is... why do comments like the one from Fred Lunau can mess the page? Is this a css problem? Do we have to include in this discussion Patrick Malley and to rewrite the comment from Fred Lunau?
Hide
Patrick Malley added a comment -

It's too tough to diagnose a hypothetical problem to know for sure, since it's already been fixed. However, I can offer a potential cause:

1.) Moodle's HTML editor allows the user a lot of freedom when it comes to formatting text. It's possible that something was pasted that had a fixed-width or was preformatted. I don't know if I can't see it. This is just a guess.

2.) It looks like this database embeds its data inside a table, which must take on the width of the content that it contains - that's just the nature of tables. When long content is pasted inside a comment that is embedded in a table, that table is going to extend as long as it has to to accommodate the content. The only solution is to stop using tables in this way.

Show
Patrick Malley added a comment - It's too tough to diagnose a hypothetical problem to know for sure, since it's already been fixed. However, I can offer a potential cause: 1.) Moodle's HTML editor allows the user a lot of freedom when it comes to formatting text. It's possible that something was pasted that had a fixed-width or was preformatted. I don't know if I can't see it. This is just a guess. 2.) It looks like this database embeds its data inside a table, which must take on the width of the content that it contains - that's just the nature of tables. When long content is pasted inside a comment that is embedded in a table, that table is going to extend as long as it has to to accommodate the content. The only solution is to stop using tables in this way.
Hide
Daniele Cordella added a comment -

maybe an embedded style defining a max width for the HTML editor may fix the problem.

Show
Daniele Cordella added a comment - maybe an embedded style defining a max width for the HTML editor may fix the problem.
Hide
Patrick Malley added a comment -

The editor itself is not the problem - it's the code and content that's pasted inside the editor and Moodle's rendering of that content.

Placing a CSS max-width value on the output of the HTML editor will have similarly adverse effects on the content shown on wide screens. The content will not span 100% of the expected area.

Show
Patrick Malley added a comment - The editor itself is not the problem - it's the code and content that's pasted inside the editor and Moodle's rendering of that content. Placing a CSS max-width value on the output of the HTML editor will have similarly adverse effects on the content shown on wide screens. The content will not span 100% of the expected area.
Hide
Daniele Cordella added a comment -

even with max-width = 100%; ?

Show
Daniele Cordella added a comment - even with max-width = 100%; ?
Hide
Patrick Malley added a comment -

Here's what I'm thinking:

The content being pasted inside the HTML editor is preformatted in some way to have its own set width. If you set the width of the content of that HTML block to a relative value like 100%, then it will expand the same way it is now.

Show
Patrick Malley added a comment - Here's what I'm thinking: The content being pasted inside the HTML editor is preformatted in some way to have its own set width. If you set the width of the content of that HTML block to a relative value like 100%, then it will expand the same way it is now.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: