search for: in: entire forum this post
you are here: root => Annoncements => 1.045 offers a very stable protection against big content in posts
member since:
folders:
10
posts:
22
replies:
75

1.045 offers a very stable protection against big content in posts

1.034 was a great update because in this update i finished fixing every thing that i had on my list of bugs. though one of the updates in 1.034, the one that was supposed to protect the page against stretching horizontally or getting too long vertically if ppl included huge elements in their posts, while producing the wanted effect, was also producing various unwanted problems, like basically scroll bars appearing where they shouldn't, making things ugly...

basically to make 1.034 when i decided how i was gonna protect the forum from stretching when ppl specify huge numbers in the width and heights of the tags that they use in their posts, my first idea was to parse the final data at the end of the bbcode function and find width and height parameters and determine their value and cap them with some fixed values. but that solution was not very good because 1 its a lot of work to make, 2 it will use extra resource on the server, 3 it will not allow a relative width and 4 it could get really complicated when ppl use tables to place multiple things in different places...

so anyways luckily i had another idea, my idea was (and i knew that it was gonna be hard to do but possible) to make it so that size of stuff in posts is unlimited and uncontrolled, but with CSS posts would get individual scrolling bars when they get too big, not affecting the rest of the page and the other posts.

that would have been easy with overflow if i wanted to have a fixed size on my table but that was not an option for me. i like relative dimensions they are way better than fixed... so i tried to make something do that with only CSS keeping my dimensions relative but i just couldn't see a way...

so i ended up falling back on JavaScript to do what i needed to do.

i have quite a bit of experience with JavaScript so i was quickly able to make it do what i needed, but using JavaScript to fake CSS is far from ideal. some instability in the loading time of each different page especially when they contain a lot of external elements like ads or images in the posts made it all a pretty unstable method and after 1.034 there were 9 more updates (from 1.035 to 1.044) that were basically all about continuing to fix and tweak this part of the code because i could never be 100% satisfied with it and i really had an uneasy feeling thinking of how i couldn't seem to trust 100% these little JavaScript snippets that were dangerously reformatting all the posts displayed.

after installing the forum on yet another site and creating a few first posts, i noticed a little irregularity in the display on internet explorer so i decided to go back again to have a look at this part of the code and try to ameliorate it, again...

but the revelation is that this time i decided to quickly google my issue once again instead of just continuing to add/remove more of the same thing that i already have. i read somewhere that someone had solved a similar issue by adding a
code:
table-layout:fixed;

to the table which contained the stuff. so i tried it out and i learned that not only using table-layout:fixed; on a table makes it load faster and use less CPU in the browser but it also stops the annoying default behavior where the table insists on adapting to the size of the stuff that it contains.

Now thanks to the new discovery of this obscure CSS property i was finally able to have some scroll-bars in an area of a relative size. As soon as i saw that, i knew that i was on the verge of a breakthrough, a breakthrough where all the annoying unstable JavaScript would be thrown out and replaced by a few simple CSS rules.

but you know how CSS is, even after this point it still took me several hours of trying this and trying that before i could shape the new fixed-layout table into what i was trying to do.

now that this part of the code is only dependent on a few inline CSS rules i know it will always work immediately and perfectly each time. so im very happy about this very useful display update. this update is now available in 1.045

though there are still a few small gaps that i left behind for now, but nothing very serious:
  • in a case where the post is both very long and very large the vertical scrolling bar only appears when you scroll at the end of the horizontal scrolling bar on Internet Explorer (first i tried to place both scrolling bars on the same div but while that was fine on all browsers, on ie, the apparition of a horizontal scrolling bar was inevitably causing a vertical scrolling bar to appear, which is apparently a known bug with internet explorer, so for this reason i was forced to turn off the vertical scrolling bar on the div in question. but since i did want to be able to scroll vertically in the case of a very long post anyways, i fixed this by adding another div that scrolls vertically inside of the div that scrolls horizontally, causing a new obvious bug that is still less bad than the initial IE bug. but amazingly Opera, Firefox and Chrome have continued displaying the 2 scrolling bars in sight at all times, which is what i want it to do)
  • in the case of a post that is very long horizontally but also very very short vertically and posted by a user who has a lots of stuff on the left side of the post, making the left side of the table long vertically compared to the right side, the horizontal scrolling bar of the post does not appear at the bottom of the post area, causing it to *look funky. though this problem only affects Firefox and IE because Opera and Chrome always bring the last row of the table all the way up under the post, which is something that already looks a little bit funky in the first place, but i could not seem to avoid for these 2 browsers and well, at least it causes this problem listed here to not exist on these browsers. such a case should be pretty rare anyways
  • the limit on vertical size of a post is dependent of JavaScript in Internet Explorer, (unlike the horizontal limit on all browsers and the vertical limit on all browsers but internet explorer which do not require JavaScript)

wassaa


test: test
post #145 permalink
please login to reply
member since:
folders:
0
posts:
0
replies:
1
A demo has been flown for the formation of the groups for the happiness of the individuals. The arrangement of the hills and smartpaperhelp promo codes has been accentuated for the use of the forms and all vital terms for the people.
post #427 permalink
member since:
folders:
0
posts:
0
replies:
1
This forum offers the good results in giving you the benefits among every minute detail. So there is superiorpapers that are providing much details about the essential data that offers a vast history.
post #428 permalink
member since:
folders:
0
posts:
0
replies:
2
that os the tech
post #447 permalink
member since:
folders:
0
posts:
0
replies:
10
Thanks for the useful information! You helped me with advice! dqfansurvey
post #466 permalink
member since:
folders:
0
posts:
0
replies:
32
On the jets jerseys prepared jerseys from china mold nike air jordan on salomon schuhe the guess factory outlet table a coach outlet online good ralph lauren polos tofu, dansko outlet bean michael kors outlet online paste new balance porridge, air huarache is mont blanc what kind fivefingers of taste? Is deep barbour jackets outlet pastoral flavor, true religion outlet the free running taste nike air max 90 of oakley canada the mother. Wok pandora charms long tommy hilfiger outlet proudly kate spade outlet online porridge, glasses online durable ghost glasses frames warm, mellow asics gel lingering swarovski australia strong, lacoste polos thick but prada outlet not patriots jerseys thick, ray ban fragrant ralph lauren but ray ban zonnebril not greasy, kate spade outlet online cool but thomas sabo jewellery not woolrich outlet widowed, eat atlanta hawks jerseys whole ralph lauren outlet online body smooth, warm. ray ban occhiali It is versace outlet online not titans jerseys like prada outlet the burberry outlet streets of breakfast orlando magic jersey porridge, new balance canada soup burberry outlet store shines reebok shoes outlet Guadan taste, lack belstaff outlet of ray ban sunglasses porridge incense; bills jerseys not memphis grizzlies jersey like coach outlet a pressure cooker and other pandora short-term pressure juicy couture handbags cooker into a porridge, steelers jerseys mellow not strong, coach black friday not givenchy outlet bad technology, tedious eat. michael jordan Only parajumpers long wok boil porridge, as if a replica watches thick adidas.se compress years, fred perry polos reveals swarovski online a taste lunette ray ban of field, beats by dre bubbling rustic prada sunglasses atmosphere, eating, adidas canada eating, true religion a nike air max surge of nostalgia oakley outlet in the minds of prada spread.


Remember as jimmy choo outlet a child, iphone case lack of food, michael kors canada eat more porridge. nike tn What impressed me most fred perry outlet is coach factory around the burberry outlet online age of one tommy hilfiger online year, coach factory poor harvests, hunger burberry outlet online spread, timberland outlet the ralph lauren outlet families under armour have enough nike air max thea to eat, a little polo ralph lauren handful of adidas superstar rice, dallas mavericks jerseys only two michael kors outlet online meals a day nike outlet to eat porridge strength to oakley sunglasses outlet avoid ray ban outlet shortage. Less houston rockets jerseys rice heat jerseys porridge, but also mixed coach outlet online with saints jerseys some puma online cereals, porridge reloj or broth widowed supra footwear water, like michael kors outlet the rare, ralph lauren outlet hard roshe run to burberry sale eat. cheap michael kors Then more browns jerseys rural thomas sabo uk firewood, michael kors bags boil nfl jerseys porridge in broncos jerseys the pandora bracelet fire for ray bans outlet a thomas sabo long christian louboutin shoes time under the same will stephen curry shoes gradually north face outlet thick, new york knicks emitting a cheap basketball shoes faint fragrance of rural nike outlet children boston celtics jersey are jack wolfskin outlet also omega watches tempting food, air max is a louboutin rare jack wolfskin jackets food. nike air force Under the hogan same dishes dre beats of porridge small jerseys from china and michael kors simple. Most mothers mildew vans shoes marinated tofu and polo ralph soy sauce, sometimes new balance outlet will michael kors taschen buy from the store hogan outlet into a mcm bags filamentous bengals jerseys white radish coach factory outlet and levis jeans carrot marinated supra footwear Assorted red bottom shoes vegetables, the north face taste chicago bulls jersey particularly cheap oakley good. vikings jerseys Occasionally stone island polos a rayban little baseball jerseys so michael kors outlet the nike schuhe dishes jimmy choo shoes with rice air jordan retro day felt rolex watches particularly pandora schmuck sweet, nike air max shoes happy, nike shoes naturally christian louboutin shoes eat more rice, oakley a cheap ray ban bowl michael kors outlet online of burberry outlet porridge longchamp outlet and vans outlet pretty Sac Hermes soon you'll feel bcbg max a wheezy, calvin klein underwear sweaty forehead lakers jerseys eat, ray bans eat warm oakley sunglasses body, phoenix suns jersey a polo outlet store steadily ray ban wayfarer difficult years hogan outlet and air max it boots on sale was burberry online shop too sweet we purses and handbags Pinza indoor soccer shoes Yang oakley sunglasses Yi. (Read cheap nfl jerseys the article Network: chargers jerseys www.sanwen.net)


Later, colts jerseys prosperous, and porridge gradually coach outlet online fade burberry out nike air max of the table. fendi handbags But lions jerseys pay attention swarovski to soccer shoes the coach outlet online health ralph lauren outlet online of people still like air jordan to raiders jerseys eat porridge. skechers They handbags outlet choose ralph lauren outlet from rice porridge toronto raptors jersey to porridge, jaguars jerseys and then ray ban sonnenbrillen prepare hermes belt rice dishes, the asics whole process is oakley vault very baseball jerseys particular about. gafas oakley Rice coach outlet canada porridge, the general election late rice, this rice tory burch shoes type converse sneakers cylindrical coach outlet or timberland boots oval, rich nike shop and full, plain color, air max texture roshe run hard nike schoenen and michael kors tough, eagles jerseys proudly porridge viscous strong, soft texans jerseys and delicious, oakley multi-vitamins and protein, and zapatillas nike low-sugar, nutrition rich, ferragamo shoes it mizuno running is sacramento kings jersey a oakley frogskins nourishing congee. dsquared2 sale Careful good beats headphones people, cheap oakley in jerseys from china the process san antonio spurs jerseys of porridge, porridge air max put asics outlet to oakley sungalsses outlet twelve eggs, mcm backpack outlet porridge cooked, tommy hilfiger eggs are denver nuggets jerseys cooked. ferragamo shoes uk Stripped barbour outlet shell, Bai los angeles clippers jersey Yingying eggs chi hair like nike roshe a magnolia north face jackets flower, beautiful barbour outlet and dolphins jerseys fragrant, nike free 5.0 fine armani outlet chemicals air max 2015 to ralph lauren polo the porridge, iphone 5s cases not a redskins jerseys good links of london outlet feeling nike free run in their true religion jeans hearts. bottega veneta And air jordan shoes so that oakley sunglasses outlet when the north face outlet some hoodies thick porridge cooked mcm backpack to tory burch outlet piping converse chucks hot, served on michael kors canada a bowl, put a packers jerseys few spoons nike store of philadelphia 76ers jerseys honey, true religion jeans outlet then nike.se put some giants jerseys sugar, 49ers jerseys stir hermes bags about it, rolex a buccaneers jerseys bowl of cc beanies delicious mcm handbags was born. new balance Care red bottoms in the ralph lauren palm of the prada shoes hand, true religion jeans women along suck cowboys jerseys sized nike mercurial vapor sip, feeling comfortable on smooth. swarovski jewelry Faced with a ralph lauren face like a converse outlet bowl burberry sale of nike shoes happy jerseys from china and comfortable tory burch life.


Eating porridge north face health longchamp of the katespade people, ravens jerseys under washington wizards jersey the chrome hearts porridge rayban dishes also quite moncler outlet online particular montblanc about the michael kors outlet online past hermes is no belstaff outlet online longer a chiefs jerseys milk curd, barbour factory pickles and the veneta like, but hilfiger online shop more valentino outlet names of uggs outlet various jordan release dates 2015 specialties dishes. nfl jerseys Generally nike.dk black beans, peanuts, hugo boss shop sour timberland femme beans, salted falcons jerseys duck eggs, nike roshe tofu, indiana pacers jersey etc; nike free 5.0 sometimes philipp plein outlet cooking panthers jerseys plus the north face points, such puma outlet as northface dry-fry sauce, lunette ray ban fried adidas superstar dried knockoff handbags fish, converse shoes fried adidas superstar fried timberland shoes vegetables, pandora burst plein shoes pepper. new orleans pelicans jersey In milwaukee bucks jersey short, nike air max they find ways to put the cleveland cavaliers sweet life ralph lauren outlet is louboutin shoes concentrated to tommy hilfiger outlet stores the coach outlet diet, and concentrated ray bans to north face a christian louboutin shoes bowl of brooklyn nets jerseys porridge, the Pinza ralph lauren factory store a fun marc by marc jacobs and healthy michael kors life in nike air max a thick coach store sweet skechers porridge.


I burberry outlet online am not nike roshe a gourmet, nor burberry sale health, oakley sunglasses cheap but giuseppe zanotti sneakers porridge michael kors for historical reasons, but roshe run it is adidas online from nba jerseys the heart like. minnesota timberwolves jersey Only now the north face eat under armour shoes very tommy hilfiger little. michael kors v?skor Whenever steaming porridge soccer shoes outlet in michael kors purses my baseball jerseys hometown air yeezy shoes can produce fossil uhren a cheap nba jerseys cup bowl rams jerseys of barbour jackets rice polo ralph paddy louboutin shoes field ralph lauren polos home jordans brewed, they seem ralph lauren to see nike huarache familiar Tianchou tumble michael kors outlet online sale Shakes fidget spinner outlet the Barley, bcbg max azria seem mcm backpack to have golden state warriors jersey heard the sound longchamp outlet of longchamp taschen chant jordan retro peasant bears jerseys labor michael kors issue, oakley sunglasses as if to smell the swarovski crystal fragrant ed hardy clothing hillsides cheap true religion of ecco outlet the moncler mens jackets plant, cheap michael kors as babyliss pro well as nike air max the mbt shoes outlet fragrance vans schuhe of rain drift oklahoma city thunder jersey in dsquared2 the nike free 5.0 countryside belstaff atmosphere, guciheaven shoes a new balance bowl of portland trail blazers jersey these are the huarache essence versace outlet online of ferragamo shoes soul, never ralph lauren outlet forget.


Busy drink a fitflop outlet bowl cheap nba jerseys of porridge, pandora charms can taste air max schoenen the world of michael kors bags clear and tory burch tranquil joy. skechers outlet In azcardinals jerseys fact, the burberry handbags diet tods outlet is coach outlet online not necessarily salvatore ferragamo filled with seahawks jerseys delicacies, simple, light, such utah jazz jersey as porridge michael kors outlet is adidas a coach factory outlet pleasure lacoste shoes and happiness. swarovski jewelry Sometimes life is www.tommyhilfiger.nl reduced katespade to polo ralph lauren outlet online a simple charlotte hornets jerseys bowl of porridge diet, ray-ban sunglasses light giuseppe shoes magenta ugg boots in life detroit pistons frugal polo ralph lauren outlet and marc by marc jacobs Germany to longchamp handbags support the ferragamo spirit coach purses outlet online manifested, guess outlet perhaps reebok those hidden michael kors uk ambitions, greed idea unknowingly pandora canada ascetic mizuno wave life went juicy couture outlet from volatile mind adidas online away
post #475 permalink
please login to reply

moderators of this post

envis (level: ∞)
powered by Nodesforum