Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
Quoting uploaded pics with firefox
Avatar
kvr28
Member
Free Members
sp_UserOfflineSmall Offline
Apr 20, 2014 - 9:12 am

I was testing some of the changes on chrome and firefox and noticed that when a member quotes a post with a uploaded picture it looks fine in chrome

pigschrome.jpgImage Enlarger

 

but when using firefox, the picture isn't constrained to the forum area, it looks fine in the original uploaded post, just not the quote

pigsfirefox.jpgImage Enlarger

any ideas?

Avatar
kvr28
Member
Free Members
sp_UserOfflineSmall Offline
Apr 20, 2014 - 9:50 am

I think I fixed part of the problem, I had the size constraints set to zero, so I changed max width to 600 and height to 400, so when quoting it sticks to that, but when you look on a mobile device with the firefox browser, it still overexpands, I checked with default android browser and it looks fine

Image Enlarger

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 20, 2014 - 11:40 am

whether it rotates from landscape to portrait is a device operation, not a unified theme operation...

that said, unified does display a few things differently based on available width - always has - no real changes there...  and if talking about a phone, its going to be pretty much the same portrait or landscape...

for mobile devices, its usually best to set max width to 100% vice a fixed width...  and to keep it only happening for certain widths, use a media query in css... something like:

img {
     width: 600px;
}

@media screen and (max-width: 600px) {
    #spMainContainer img {
        width: 100%;
    }
}

that would set width to 600px unless you were on a device with width available less than 600px, it would just set the width to full viewport...   just an example, need to tailor for what you are doing... and may want max-width vice width... depends on what else is going on..

Avatar
kvr28
Member
Free Members
sp_UserOfflineSmall Offline
Apr 20, 2014 - 11:50 am

Mr Papa said
whether it rotates from landscape to portrait is a device operation, not a unified theme operation...

that said, unified does display a few things differently based on available width - always has - no real changes there...  and if talking about a phone, its going to be pretty much the same portrait or landscape...

for mobile devices, its usually best to set max width to 100% vice a fixed width...  and to keep it only happening for certain widths, use a media query in css... something like:

img {
     width: 600px;
}

@media screen and (max-width: 600px) {
    #spMainContainer img {
        width: 100%;
    }
}

that would set width to 600px unless you were on a device with width available less than 600px, it would just set the width to full viewport...   just an example, need to tailor for what you are doing... and may want max-width vice width... depends on what else is going on..

I found the issue with the landscape issue, some reason the display settings on my phone changed, I will try that and see if it fixes the mobile issue, any idea why it only seems to be a problem with firefox?

I currently have this in my custom css for my theme

/* Simplepress mobile iframe width 100% for liveleak and youtube videos etc */
@media only screen and (max-width: 768px){
.spPostContent iframe { width: 100%; }
}

.spPostContent iframe {
max-width: 640px !important;
max-height: 360px !important;
}

that shouldn't be causing any conflicts should it? Some members were noticing embedded videos were showing 4x3 so I added that to force 16x9

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 20, 2014 - 8:52 pm

the iframe stuff? shouldnt... unless the images are in an iframe, which we dont do...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17363
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625