جميع التقارير
تقارير thurnandtaxis_displayed
#22599: "Display bug on Safari and small screens"
ما هو هذا التقرير؟
ماذا حدث؟ يرجى اختيار من أدناه
خطأ العرض: بعض معلومات اللعبة المعروضة كانت خاطئة (مع عدم وجود نتيجة مهمة في اللعبة)
وصف مفصل
• يرجى وصف مشكلة العرض. إذا كان لديك لقطة شاشة لهذا الخطأ (ممارسة جيدة) ، يمكنك استخدام Imgur.com لتحميله ونسخ / لصق الرابط هنا.
The cards don't quite display correctly on iPhone, or on Safari on MacOS if the size of the window is small. imgur.com/a/HUExtQT
The same issue affects the display of collected bonus tokens, although not the ones on the board.• ما هو متصفحك؟
Safari v13.1
سجل التاريخ
shadowphiar • لم يتم اعادة انتاج الأخطاء من قبل المطورين حتى الآن:
أغس 14 th 2020 1:08 • Fortunately these cards have enough of a border that it doesn't really interrupt the game, but this will work better if background-position is specified in terms of offsets in px instead of percentages of the card size.
Sadly Safari handles background-position slightly differently to other browsers when it is specified as a percentage (that is, a multiple of the size of the object being displayed). After calculating the size of the box being displayed, Safari appears to truncate/round those dimensions to an integer number of pixels as they are displayed on the screen, and then draw the image offset by percentages of that integer value. This becomes significant in small windows because the whole view gets scaled down so as to fit the minimum width. This difference of up to half-a-pixel, multiplied by percentages like 2200% adds up to an offset that can be substantial.
NB: I'm not saying Safari isn't wrong to be doing this truncation, but even if someone gets them to fix it, then it will still only look right for BGA users who have updated to the latest and greatest Safari version, whereas using px offsets should be correct for all viewers.
Sadly Safari handles background-position slightly differently to other browsers when it is specified as a percentage (that is, a multiple of the size of the object being displayed). After calculating the size of the box being displayed, Safari appears to truncate/round those dimensions to an integer number of pixels as they are displayed on the screen, and then draw the image offset by percentages of that integer value. This becomes significant in small windows because the whole view gets scaled down so as to fit the minimum width. This difference of up to half-a-pixel, multiplied by percentages like 2200% adds up to an offset that can be substantial.
NB: I'm not saying Safari isn't wrong to be doing this truncation, but even if someone gets them to fix it, then it will still only look right for BGA users who have updated to the latest and greatest Safari version, whereas using px offsets should be correct for all viewers.
Volker78 • تم تأكيد الخلل من قبل المطوريين:
أغس 14 th 2020 7:54 • Oh, that is ugly. One problem possibly: the background-size is bigger than required for being able to zoom without pixelating. The admins from BGA told me, to do it this way. The default BGA stock component (used for all card games) uses percentage positioning. I will ask them, how they plan to handle this problem.
Volker78 • تم تأكيد الخلل من قبل المطوريين:
أغس 18 th 2020 19:12 • Could you please try again? I changed some bits..
If it will not work. Could you perhaps play a little bit with the background-size-settings? I now have set them fixed:
#carriages .stockitem {
background-size: 780px 100px;
}
and
.citycard {
background-size: 2300px 156px;
}
I am quite sure, it should have to do with the background-size. You could also try for the city cards
.citycard {
background-size: 3450px 235px;
}
and also adapt the stockitem html-fixed-size to 150px x 235 px
If it will not work. Could you perhaps play a little bit with the background-size-settings? I now have set them fixed:
#carriages .stockitem {
background-size: 780px 100px;
}
and
.citycard {
background-size: 2300px 156px;
}
I am quite sure, it should have to do with the background-size. You could also try for the city cards
.citycard {
background-size: 3450px 235px;
}
and also adapt the stockitem html-fixed-size to 150px x 235 px
اضف لهذا البلاغ
الرجاء إضافة أي شيء يبدو هنا ذا صلة من أجل إعادة إنتاج هذا الخطأ أو فهم اقتراحك:
- تعريف طاولة/تعريف حركة
- هل حلَت F5 المشكلة؟
- هل ظهرت المشكلة عدة مرات؟ كل مرة؟ بطريقة عشوائية؟
- إذا كان لديك لقطة شاشة لهذا الخطأ (ممارسة جيدة) ، يمكنك استخدام Imgur.com لتحميله ونسخ / لصق الرابط هنا.