inherit
258763
0
Jul 21, 2019 14:20:12 GMT -8
bradnelson
6
June 2019
bradnelson
|
Post by bradnelson on Jun 16, 2019 9:33:56 GMT -8
Is there a way to make the Participated box show more than four or five recent posts? I can't find any setting for this. Thanks.
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,018
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Jun 16, 2019 20:32:28 GMT -8
The contents are hard coded at 575 x 363 (minus height of select/actions bar)
|
|
inherit
258763
0
Jul 21, 2019 14:20:12 GMT -8
bradnelson
6
June 2019
bradnelson
|
Post by bradnelson on Jun 17, 2019 7:42:27 GMT -8
Thank you very much for the info, Chris. That's certainly the reason I could find nothing. Thanks for the quick feedback. Have a great day.
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,018
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Jun 17, 2019 14:43:55 GMT -8
It is of course resizable, you can simply drag it to a taller height with your mouse but I assume you already know that and instead want to affect the initial opening size?
Edit
<script> /* Set New Default Participated Dialog Size -- GLOBAL HEADER */ $(document).on('dialogopen', '#recent-threads', function(){ $(this).dialog('option','height',1200); $(this).dialog('option','position','static') }); </script>
change the number 1200 to whatever tickles your fancy or to 'auto'
|
|
inherit
258763
0
Jul 21, 2019 14:20:12 GMT -8
bradnelson
6
June 2019
bradnelson
|
Post by bradnelson on Jun 19, 2019 13:03:58 GMT -8
Thanks, Chris. I had totally missed that you can resize that box (although the size doesn't seem persistent). Your script placed as a Global Header worked like a charm. I had no idea something like this could be done, especially regarding the header.
I set it for "600" and that was great. You've already went above and beyond the call of duty. But it's interesting that the first time I open the "Participated" window using this script that the window shows lower in the browser window (perhaps 150 pixels or so) than center. But if you close the window and open it again, the window appears (as is normal) centered relative to the entire browser window.
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,018
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Jun 19, 2019 13:52:15 GMT -8
That is correct! The script resizes it after it opens so the initial placement would still be based on the hardcoded height but subsequent placement would be based on the newer height. It would be the exact same effect as using your mouse to drag the dialog taller, calculations on positions are made prior to opening so the second attempt would then employ the taller height.
|
|
inherit
258763
0
Jul 21, 2019 14:20:12 GMT -8
bradnelson
6
June 2019
bradnelson
|
Post by bradnelson on Jun 19, 2019 13:54:59 GMT -8
In the category of even a blind chicken may find a grain, I added this as the fifth line and it seems to work, Chris. $(this).dialog('option','position','static') You can see in in action here.
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,018
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Jun 19, 2019 14:02:00 GMT -8
That sure does indeed recalculate positioning after opening. Kudos!
|
|
inherit
258763
0
Jul 21, 2019 14:20:12 GMT -8
bradnelson
6
June 2019
bradnelson
|
Post by bradnelson on Jun 19, 2019 14:10:02 GMT -8
It's remarkable what a little Googling can get you. And a healthy dose of trial and error. I'm guessing at technique. I'm not yet even barely proficient at CSS. etc. But with your example, it gave me something to try to build on. I think I got lucky.
|
|