I am transitioning a webpage that is using fullcalendar 1.x, to fullcalendar 2.x. It seems with the new layout style the calendar is mainly built for events which are a single line, or at the very least similar heights. To get around the single line title issue the popular resolution seems to be: https://code.google.com/p/fullcalendar/issues/detail?id=1992 , specifically the
.fc-day-grid-event > .fc-content {
white-space: normal;
}
css rule.
However, there seems to be a problem with white space stacking on adjacent events. An example screenshot can be seen here:
A jsbin with a similar issue can be found here: http://jsbin.com/vegopabegu/2/edit . The whitespace I would like to remove is highlighted in this screenshot: http://screencast.com/t/k7wvF9JPOtM . I have yet to figure out a good way to post process these events to stack them a bit more efficiently and avoid whitespace generated by differing heights.
Has anyone overcome this issue?
This is very hard to accomplish in pure CSS without changing the code of FullCalendar. Even if you decide to change the FullCalendar code, then still this is hard to accomplish. This is caused by the fact that a table is used for rendering the calendar. The whitespace you want removed is caused due to that all these events are populated on one table row. Getting FullCalendar to properly use a table and stack the events using div's is hard to accomplish. I couldn't find anyone who tried this and succeeded in doing this.
The only simple solution I can think of for now is to give the events the same height so the white space doesn't show:
a.fc-event{
height: 34px;
}
See here: http://jsbin.com/cudovagasu/1
Another solution is removing the blue backgrounds so the whitespace becomes invisible:
a.fc-event{
background-color: transparent;
border-color: transparent;
color: black;
}
a.fc-event:hover{
color: #3a87ad;
}
See here: http://jsbin.com/cudovagasu/2
Another possible solution is to drop FullCalendar and try to find another calendar library which doesn't have this issue.
Related
Unfortunately I can't show you a simple reproducible example beacuse in Codepen the issue doesn't take place, but when I've added the code into my application, I have double pixel border that is not exactly red as specified by css (in my example it's #ccc but it's not that color when I use eye dropper, so I've used red to see the issue better).
It looks like a browser bug, I've disabled all css that is on table cell and browser is doubled even that it should have 1px and be red. As you can see in screenshot it's not exactly FF0000. The application is boostrap based shiny R application with default shiny modal (created using bootstrap).
Any idea what may cause this issue, note that I don't use any Houdini code, so there is only single line:
td, th {
border-bottom: 1px solid red;
}
It also happen in Incognito mode so it's not browser extension.
It works fine in Firefox, maybe it's issue with experimental font-size-adjust property.
EDIT:
I expect to look like it should according to any CSS rules. Here is codepen demo where there is the same table with 1 pixel border.
https://codepen.io/jcubic/pen/GRjWdWj
And here is screenshot with red border (I using different OS to post this so no zoom):
EDIT2: I'm just asking if someone have the same issue and maybe know the solution, I know it would be hard to find the fix from the information I've provided, if you don't have the issue yourself. So my question is more if you know that this is a bug and maybe found a way to fix.
1) Above attached is my Firefox screenshot. I have modified my userchrome.css file to get rid of the tabs but now Firefox has a big empty gap at the bottom. I am unable to get rid of it. I tried everything.
2) Also, how do I shrink my navigation bar to the right so that my tree Style tab occupies the whole left side.
Here is what I have tried so far:
#main-window[sizemode="maximized"] #titlebar {margin-bottom: -34px !important; }
#main-window[sizemode="maximized"] #nav-bar {margin-right: 138px; }
The -34px worked in expanding my main window but without the outside frame so it ended up hiding the bottom part of the window. I think there should be another "Frame-window" or something?
I am really surprised that no one has asked a question like this; I mean almost anyone who uses Tree Style Tabs add-on is bound to face this issue and that addon has like more than a million users.
OK, thanks to Micha, I was able to partially solve the first problem.
here is the link with screenshots and an explaination:
https://github.com/LucKy-4U/Firefox-Chrome-Folder
Still, if someone knows how to do it without using my stupid trick then please let me know as my trick is partially broken.
Following problem:
I'm trying to style the print view of a website containing a custom google map.
In the print view and only on Chrome there is a row of tiles missing. This does not happen for all maps on other pages, just certain ones.
I can't seem to figure out why. Any ideas?
Horizontal Cut / Missing tile row
Although this question is quite old I thought I'd post a solution that worked for me in case anyone stumbles upon this question like I have.
Adding a few lines of CSS seems to fix this Google Maps painting issue:
.gm-style div > img {
position: absolute;
}
Thanks to the author of comment 13 on this chromium bug report for offering this solution.
I have simplified something (an HTA) I am working on in hopes that someone can help me (again) achieve what I am going for.
I am trying to get an entire table's styling to change when hovering over the word help. This way the tooltip will "pop" more. I have tried changing the HTML a thousand different ways but the CSS that i think should work, doesn't. I thought if I wrap the entire "help" section in a DIV then another DIV around the table I could use this
.help:hover ~ table { opacity:0.4;}.
the jsfiddle below is the only way I can get the effect i want but the table opacity goes to 0.4 no matter where I hover (assuming because its all in 1 DIV?). Hopefully this all makes sense!
.help:hover table {
opacity: 0.4;
}
http://jsfiddle.net/6DsMg/12/ (please view this in IE only)
I was able to get it working by using what I posted above. Still unsure why it isnt working in my actual finished product though. At least i know it works.
for anyone who comes across this post, the jsfiddle has been updated.
Hi I have already read posts which suggest using style="vertical-align: middle;"
however this is not working for me. I am a beginner so I was hoping somebody could take a look. I've been playing around on jsfiddle with it and getting nowhere.
here is my jsfiddle.
It is a dynamic form so to get to the area I am having the issue you must select option 5 "True/false" on the drop down.
as for the html for it, it is located within the javascript in 'case 5'.
Also for some reason on the jsfiddle one label is out of line and I don't know why as it works fine on firefox and chrome :S
please enlighten me, thanks
I eliminated many of the float on labels and inputs, and set width: auto and it improved greatly.
That would affect all inputs though, and I think part of your problem is the large width of just the radio button inputs.
As a broader issue, I would probably have all those question types already in the page in hidden divs, and show the appropriate one when the question type is selected. That makes it easier to work with your CSS by showing them all during dev/debug of the styles then hiding them when you're done.
Not much of an answer, but it's all I've got without really digging into the fiddle a lot.
Try this and play with the margins to get the desirable output.
#stylized label.smaller input{
float:none;
width: 25px;
}