- Posts: 4
problem of mobile theme for moodle 2.0
- Riskoo
- Topic Author
- Offline
- New Member
-
Less
More
14 years 3 months ago #1
by Riskoo
problem of mobile theme for moodle 2.0 was created by Riskoo
When I use the mobi theme moodle joomla and I see the smarphone, the window is cut and I can not see what's below.
Is there any way to modify the joomla courses page for full out always?
I think I read that also happens with some other themes, and pc, which is cut, as if the embedded page.
What I can do? thx
Is there any way to modify the joomla courses page for full out always?
I think I read that also happens with some other themes, and pc, which is cut, as if the embedded page.
What I can do? thx
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7926
14 years 3 months ago #2
by Antonio Durán
Replied by Antonio Durán on topic Re: problem of mobile theme for moodle 2.0
Hi. Can you explain more?
Do you talk about the wrapper being cut or what?
Do you talk about the wrapper being cut or what?
Please Log in or Create an account to join the conversation.
- Chris
-
- Offline
- Moderator
-
14 years 3 months ago #3
by Chris
Replied by Chris on topic Re: problem of mobile theme for moodle 2.0
Yes you are correct. If you are going to include any moodle content inside a joomdle wrapper you need to ensure there is sufficient space on either side. The wrapper will naturally take some space too thus reducing your horizontal allowance.
This will be even more difficult with the mobile themes. Have you designed your content to fit on mobile? If so, then you need to make it even small to allow it to wrap in Joomdle.
You may want to play the various Joomdle css files or even the specific views you are trying to use.
This will be even more difficult with the mobile themes. Have you designed your content to fit on mobile? If so, then you need to make it even small to allow it to wrap in Joomdle.
You may want to play the various Joomdle css files or even the specific views you are trying to use.
Please Log in or Create an account to join the conversation.
- Riskoo
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 4
14 years 2 months ago - 14 years 2 months ago #4
by Riskoo
Replied by Riskoo on topic Re: problem of mobile theme for moodle 2.0
The problem is the javascript file "autohight.js" of Joomdle
the height of the window not caught it, as I have that solution when h is less than 400 hours that I was left with the mobile as h = h +3000 and is already full.
Would read:
I would like to have the option to put automatic, someone would know how to get the height of the window joomla?
Code:
function itspower( ifRef, setW, setH, fMargin ) {
ifRef.height = 1;
var ifDoc, margin = typeof fMargin === 'number' ? fMargin : 16, h, w, sTop, sLeft;
try {
ifDoc = ifRef.contentWindow.document.documentElement;
}
catch( e ){ ifDoc = null; }
if( ifDoc ) {
sLeft = document.body.scrollLeft + document.documentElement.scrollLeft;
sTop = document.body.scrollTop + document.documentElement.scrollTop;
if( setH ) {
h = ifDoc.scrollHeight;
ifRef.height = 1;
ifRef.height = 3000 + margin;
}
if( setW ) {
w = ifDoc.scrollWidth;
ifRef.width = 1;
ifRef.width = w + margin;
}
}
window.scrollTo( sLeft, sTop );
}
the height of the window not caught it, as I have that solution when h is less than 400 hours that I was left with the mobile as h = h +3000 and is already full.
Would read:
Code:
if( setH ) {
h = ifDoc.scrollHeight;
if (h<400){
h=h+3000;
}
ifRef.height = 1;
ifRef.height = h + margin;
}
I would like to have the option to put automatic, someone would know how to get the height of the window joomla?
Last edit: 14 years 2 months ago by Riskoo.
Please Log in or Create an account to join the conversation.