Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Cannot Reproduce
-
Affects Version/s: 1.6
-
Fix Version/s: None
-
Component/s: Calendar
-
Labels:None
-
Affected Branches:MOODLE_16_STABLE
Description
If mouse is over a date cell a DIV popup is elicited that is normally positioned righthandside of the cursor position. If there is not enough space to the right then overlib enforces visibility by sticking DIV to the right border. Thereby mouse cursor will be set directly on the border of the DIV so that the DIV gets clicking events that should be send to the cell below it. This may result in a DIV totally hiding the cell and thereby totally preventing clicks on that cell, which is not desirable. Code below can repair this.
function calendar_get_popup in /calendar/lib.php about line 367
old version
$popup = 'onmouseover="return overlib(\''.$popupcontent.'\', CAPTION, \''.$popupcaption.'\');" onmouseout="return nd();"';
new version
$popup = 'onmouseover="return overlib(\''.$popupcontent.'\', CAPTION, \''.$popupcaption.'\', OFFSETY, 3);" onmouseout="return nd();"';
Attachments
Activity
- All
- Comments
- History
- Activity
- Source
- Test Sessions
CSS/display has changed a lot in 2.0 and the screenshot looks like a custom theme anyway. If this is still a problem with 2.0 themes let me know and I'll reopen this issue.