Page MenuHomePhabricator

WebChat iframe with based on screensize
Closed, ResolvedPublic

Description

Author: mart0258

Description:
Example patch

Extension:WebChat (http://www.mediawiki.org/wiki/Extension:WebChat) uses an iFrame to display content, that is automatically resized to screen width. This forces the user to resize the browser to be unnecessarily wide.

This is caused by /trunk/extensions/WebChat/WebChat_body.php, in function execute().

The attachment shows a sample change on how to fix the problem. It changes the iFrame width to 100%, letting the browser to resize the iFrame itself rather than hacking it through Javascript.

A sample fix is found on StrategyWiki, and may be copied from there.


Version: unspecified
Severity: normal

Attached:

Details

Reference
bz29592

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:34 PM
bzimport set Reference to bz29592.

Patch seems to do the job! :) Looks ok in Firefox 5, IE 7, IE 6, didn't bother testing other browsers.

Applied in r92077 (with the commented lines removed).