jDownloadsownloads.com

Advertisement
Advertisement:

Author Topic: jdownloads icons resized to big. Is this a Bug?  (Read 4543 times)

0 Members and 1 Guest are viewing this topic.

Offline exec

  • Newbie
  • *
  • Posts: 5
jdownloads icons resized to big. Is this a Bug?
« on: 03.11.2014 12:21:42 »
Hello,

if I resize the page on my webside with a download link, the jDownloads Icons resize to a very big Format (also on a mobile phone). I attach a Picture for this issue.

Here is the generated code. I can't see the error  :-\

Code: [Select]
<table cellspacing="5" cellpadding="5" width="100%" border="0" style="background:#F8F8F8;border-bottom:1px solid #cccccc;">

    <tbody>
        <tr valign="top">
            <td width="90%" valign="top">
                <img width="32" height="32" border="0" title="" alt="" style="vertical-align:middle;" src="http://www.software-virtualisierung.de/images/jdownloads/fileimages/binary.png"></img>
                <b

And witch file I need to edit for the layout?

http://www.software-virtualisierung.de/entry/appbot-a-citrix-application-streaming-profiles-to-msi-and-app-v-5-free-to-use.html

Can anyone help please?


Offline Arno

  • Administrator
  • ***
  • Posts: 12.110
    • jDownloads.com
Re: jdownloads icons resized to big. Is this a Bug?
« Reply #1 on: 03.11.2014 19:18:10 »
Hi,
seems that you have fixed it in the meantime?  ::)
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!

Offline exec

  • Newbie
  • *
  • Posts: 5
Re: jdownloads icons resized to big. Is this a Bug?
« Reply #2 on: 03.11.2014 19:32:42 »
Unfortunately not. The representation is false only in a narrow resolution. Furthermore, a new image with a different browser
« Last Edit: 03.11.2014 19:34:29 by exec »

Offline Arno

  • Administrator
  • ***
  • Posts: 12.110
    • jDownloads.com
Re: jdownloads icons resized to big. Is this a Bug?
« Reply #3 on: 04.11.2014 15:55:03 »
Hi,
which browser produced this output?

See pic from firefox.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!

Offline exec

  • Newbie
  • *
  • Posts: 5
Re: jdownloads icons resized to big. Is this a Bug?
« Reply #4 on: 04.11.2014 21:11:23 »
Hi,

I think every browser on a smal y resolution (width ~ 500 pixel). I first saw it on my mobile phone.
You need to resize. Attatches is a picture from the ie and the chrome browser.




Offline Arno

  • Administrator
  • ***
  • Posts: 12.110
    • jDownloads.com
Re: jdownloads icons resized to big. Is this a Bug?
« Reply #5 on: 04.11.2014 21:50:56 »
Okay i see now what you mean. Maybe can Colin check it more then i can not find what shall be wrong here in the source.

Edit:
See the example pic with the Joomla default template. Maybe a problem with your template.
« Last Edit: 04.11.2014 21:52:27 by Arno »
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!

Offline exec

  • Newbie
  • *
  • Posts: 5
Re: jdownloads icons resized to big. Is this a Bug?
« Reply #6 on: 04.11.2014 22:15:36 »
Hi,

I found a solution for the Problem:

style="max-height: 32px; max-width: 32px !important;"

in

Code: [Select]
<img width="32" height="32" title="" style="max-height: 32px; max-width: 32px !important;" alt="" src="/images/thumbnails/images/jdownloads/fileimages/binary-32x32.png" border="0">

the !Important command is the key.

I need to locate the sourcefile for the format statement - in the next days. Thank you for your help  :)


Andreas



Offline Arno

  • Administrator
  • ***
  • Posts: 12.110
    • jDownloads.com
Re: jdownloads icons resized to big. Is this a Bug?
« Reply #7 on: 04.11.2014 22:43:29 »
Quote
I need to locate the sourcefile for the format statement
I think not that this is a good idea. Please note that you will lose it again after the next update.  ::)
So you should you better fix it in your template.
« Last Edit: 04.11.2014 22:45:09 by Arno »
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!

Offline Arno

  • Administrator
  • ***
  • Posts: 12.110
    • jDownloads.com
Re: jdownloads icons resized to big. Is this a Bug?
« Reply #8 on: 04.11.2014 22:54:15 »
Sorry, i have overlooked that you use the older 1.9 series.
Here are not more updates planed in the future.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!

Offline ColinM

  • jD Tester
  • *
  • Posts: 3.181
Re: jdownloads icons resized to big. Is this a Bug?
« Reply #9 on: 04.11.2014 23:29:13 »
Hi
What is happening from your description is that your small 32 x 32 images are being made bigger on your mobile device with its small screen. 

This may be that your device is using a version 4.x html where width & height could be selected as either % or px as controlled by the application.  With html v5 the definition is fixed in px.  So that would explain why you are seeing a much increased size.  The max-width setting avoids that problem.
Could you check which version of html your troublesome device is using please.

I am not familiar with the code in the 1.9.2.x series but you would probably find the code in somewhere like <site>/components/jdownloads/views/download/tmpl/default.php  (that is structure used in the 2.5 and 3.2 series.   The 2.5 and 3.2 series are just about to go stable so you might like to think about upgrading on a test site.  If you find the problem there then we can definitely fix it!!

Colin

Offline exec

  • Newbie
  • *
  • Posts: 5
Re: jdownloads icons resized to big. Is this a Bug?
« Reply #10 on: 05.11.2014 07:02:32 »
Hi,

i "fixed" it for the moment in plugin/content/jdownloads/jdownloads.php

one example line:

Code: [Select]
$jd_file_pic = '<img src="'.JURI::base().$jDFPsfolders['file'].$p_Frow->file_pic.'" style="max-height: 32px; max-width: 32px !important;vertical-align:middle;" border="0" height="'.$jlistConfigM['file.pic.size'].'" width="'.$jlistConfigM['file.pic.size'].'" alt="" title="" />';

max-height: 32px; max-width: 32px !important;

Thank you  :)



 

Advertisement